How to set SetTimerEx to all players ?
#5

Quote:
Originally Posted by Johnson_boy
Add this to beginning of your vabReklaam1 timer:

for(new i=0; i < MAX_PLAYERS; i++)
{

And then when there is for instance SetPlayerHealth(playerid, 100);
change it to SetPlayerHealth(i, 100);

And that for every actoin in vabReklaam1.

I'm not sure if thats the best way, but it works.
Using:
pawn Код:
for(new u = 0; u < MAX_PLAYERS; u++) SetTimerEx("vabReklaam1", 10000, false, "i", u);
would cause lag.

Use one timer (SetTimer-function) and make a loop for all players inside it.
Reply


Messages In This Thread
How to set SetTimerEx to all players ? - by wiilweer - 08.01.2010, 11:51
Re: How to set SetTimerEx to all players ? - by lameguy - 08.01.2010, 11:57
Re: How to set SetTimerEx to all players ? - by shady91 - 08.01.2010, 12:03
Re: How to set SetTimerEx to all players ? - by wiilweer - 08.01.2010, 12:08
Re: How to set SetTimerEx to all players ? - by Correlli - 08.01.2010, 12:50

Forum Jump:


Users browsing this thread: 2 Guest(s)