Timer Question
#1

Simple Question!

How To Set Timer Or Timer Ex For All Players?

like someone robbed the bank and then set timer or set timer for all
Reply
#2

pawn Код:
CMD:robbank(playerid, params[]) //or whatever
{
    //blablabla
    //blebleble
    SetTimerEx("YourFunc", YourTimeInMilisec, repeating? true/false, "i", playerid);
}

forward YourFunc(playerid);
public YourFunc(playerid)
{
    //do something
}
Reply
#3

Just set global timer? SetTimer();
Reply
#4

settimer works for all?
Reply
#5

You'll need a player loop inside the timer's callback if you use SetTimer function.
Reply
#6

can u show me?
Reply
#7

https://sampwiki.blast.hk/wiki/Loops
Reply
#8

aight thanks@!!!
Reply


Forum Jump:


Users browsing this thread: