Timer for a player
#1

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!
Reply
#2

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

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

It worked. Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)