Posts: 435
Threads: 82
Joined: Jan 2008
Reputation:
0
hi i want to check every 10 seconds if a player is on foot and then do like strip weapons etc
how can i do this
on playerstate change does not work for this.
thanks
Posts: 6,340
Threads: 58
Joined: May 2009
Reputation:
0
@kims: 600 is not 10 minutes, 600000 is. You need to set interval in miliseconds.
Posts: 6,340
Threads: 58
Joined: May 2009
Reputation:
0
Ah sorry, didn't saw he was talking about seconds. But still, 600 is not 10 seconds, 10000 is.
Posts: 2,593
Threads: 34
Joined: Dec 2007
And not
Код:
SetTimer("onfoot", 600, 0);
but
Код:
SetTimerEx("onfoot", 10000, 1, "d", playerid);