Timer is server wide?
#1

I'm a little confused. I've made a tutorial, and I added a timer:

So basically, when the user types /help, the timer is set for 10 seconds

Код:
SetTimer("tut1", 10000, false);
This works absolutely no problem. The player gets teleported to the jail, the message comes up. Then the next timer takes you to the next part:
There is no timer on that, so the script hangs until the player types one of the commands above as instructed.

HOWEVER

In the meantime, someone else typed /help.

They wait 10 seconds but never get teleported to the first place, instead, the first guy goes from step 3, to step 2 (back to the jail) and the 2nd guy doesn't go anywhere.

I can't work out why this is. some help would be awesome

Thanks

ask me for more info. if needed
Reply
#2

Try to use SetTimerEx function associated with playerid:
Example:
pawn Код:
SetTimerEx("tut1", 10000, false, "i", playerid);
Reply
#3

thank you so much it works perfectly now!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)