when to use SetTimer, SetTimerEx and KillTimer - 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)
+--- Thread: when to use SetTimer, SetTimerEx and KillTimer (
/showthread.php?tid=372505)
when to use SetTimer, SetTimerEx and KillTimer -
NewbieScripter - 26.08.2012
Hello... my question is
when to use SetTimer, SetTimerEx and KillTimer
thanks
Re: when to use SetTimer, SetTimerEx and KillTimer -
Dan. - 26.08.2012
Look them up on wiki.
Basically, SetTimerEx is SetTimer with parameters, if you want to send random messages to everybody etc. then SetTimer is enough, but when you want a timer to be only for 1 person, you use SetTimerEx. KillTimer is used to kill a timer, like stop it working.
Like:
pawn Код:
new timerid123 = SetTimer("SendRandomMessage", 1000*30*7, true);
KillTimer(timerid123);
Re: when to use SetTimer, SetTimerEx and KillTimer -
TaLhA XIV - 26.08.2012
SetTimer sets a timer for everyone,SetTimerEx sets a timer for a certain player only,KillTimer kills the timer(stops the timer),you can search on ****** about it.
Re: when to use SetTimer, SetTimerEx and KillTimer -
NewbieScripter - 26.08.2012
Thanks