SA-MP Forums Archive
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)
+--- Thread: Timers (/showthread.php?tid=594715)



Timers - SystemX - 22.11.2015

Will a timer work after will kill it? Becuase I'm using a countdown timer and it do not work after it get killed


Re: Timers - Yashas - 22.11.2015

Obviously, the timer wont work anymore. The purpose of killing a timer is to stop the timer. So killing = stopping the timer , hence, it wont work anymore.


Re: Timers - SystemX - 22.11.2015

Is there any function, to just Stop Timer not kill it..?


Re: Timers - thefirestate - 22.11.2015

If you are counting down, what is the reason of stopping it?


Re: Timers - Abagail - 22.11.2015

You can just kill it and then recreate it when it's needed. If you only want the timer to run once, just set the loop param(the 3rd parameter) to false.