SA-MP Forums Archive
Slower reaction in script - 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: Slower reaction in script (/showthread.php?tid=297604)



Slower reaction in script - oliverrud - 16.11.2011

My question is how can I do so from:

pawn Код:
SetPlayerPos(blah,blah,blah,blah);
//fill up with crap that slightly slows down the script so it takes longer time before making it to
//This part of the script..



Re: Slower reaction in script - MP2 - 16.11.2011

SetTimerEx.


Re: Slower reaction in script - Memoryz - 16.11.2011

You can set a timer to run te rest of it, just add the code into a self made public and call it within whatever time you specify


Re: Slower reaction in script - oliverrud - 16.11.2011

Quote:
Originally Posted by MP2
Посмотреть сообщение
SetTimerEx.
No other way?, doubt that'll work in the OnPlayerUpdate callback, would just create a tons of SetTimerEx which would be way too unnecessary I guess?