Timers - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Timers (
/showthread.php?tid=192947)
Timers -
RichyB - 24.11.2010
Alright,
Hey Guys,
Right now im trying to set it up so when a player connects a timer is run for that only player.
How do I get a timer which only works for playerid instead of the whole server?
Re: Timers -
Nero_3D - 24.11.2010
Use SetTimerEx but I need to say that it isnt effective to use so much timers, its better to use one timer which loops through all players
Re: Timers -
Faraday - 24.11.2010
Assign the timer to a variable like so:
Code:
gTimer[playerid] = SetTimerEx( "KillPlayer",5000, 0, "i", playerid );
or something like that