Tete omar Posted August 1, 2012 Share Posted August 1, 2012 Hello all, when i click on "English" button everything will be happened , but , there's a little problem , and i think it with the timer , i'm getting spawned every 10 sec or 5 watch this https://www.youtube.com/watch?v=TZez25s- ... e=youtu.be here's the codes server side function Airporting() setElementPosition( client, 1707.4298095703, 1607.8055419922, 10.015625 ) setCameraTarget( client ) end addEvent("Airporting", true) addEventHandler('Airporting', getRootElement(), Airporting) client side function iaccept() if ( source == English ) then guiSetVisible( GUIEditor_Window[7], false ) guiSetInputEnabled( false ) showCursor( false ) fadeCamera( false ) setTimer( function() fadeCamera( true ) triggerServerEvent("Airporting", localPlayer) end, 6000, 6) end end addEventHandler("onClientGUIClick", getRootElement(), iaccept) what's the problem ? Link to comment
_Dark_ Posted August 1, 2012 Share Posted August 1, 2012 setTimer( function() fadeCamera( true ) triggerServerEvent("Airporting", localPlayer) end, 6000, 6) -- Six times Timer will repeat 6 times. Change 6 to 1. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now