Any pause function? - 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: Any pause function? (
/showthread.php?tid=309495)
Any pause function? -
xGoldenx - 07.01.2012
Hey
Is there any pause/sleep/wait function in pawn which will pause executing the script for x miliseconds/seconds?
Thanks in advance for help
Re: Any pause function? -
-Prodigy- - 07.01.2012
Remember that PAWN is singled threaded, so using this function will stop everything ( Player updates, etc.. )
https://sampwiki.blast.hk/wiki/Code_Snippets
(Code at end of page)
Re: Any pause function? -
xGoldenx - 07.01.2012
So I have to use timers to proper server working (I want to pause for example only script for one player)?
Re: Any pause function? -
xGoldenx - 08.01.2012
Bump
Re: Any pause function? -
Konstantinos - 08.01.2012
[Include] OnPlayerPause (Click Me!)