SA-MP Forums Archive
Timer for a player - 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: Timer for a player (/showthread.php?tid=231794)



Timer for a player - lewismichaelbbc - 26.02.2011

Hi, i have a timer but it is not working correctly, it is doing it for playerid 0, and not the playerid that typed the command to start the timer:

How can i make this timer:

pawn Код:
Timer2 = SetTimer("monsterjump3",5000,false);
work for a player?

Thanks!


Re: Timer for a player - Mauzen - 26.02.2011

Use SetTimerEx (https://sampwiki.blast.hk/wiki/SetTimerEx)

Example:
pawn Код:
Timer2 = SetTimerEx("monsterjump3",5000,false, "i", playerid);



Re: Timer for a player - lewismichaelbbc - 26.02.2011

It worked. Thanks!