24.12.2009, 13:38
Why all of you are still using:
this just lags your server, why should it loop 500 times if there is only 30 players on server ?
you should use this instead:
This one loops only for slots ammount, so if your server has 30 slots it will loop 30 times.
or you can use this one
This will only loop for players that are online.
Код:
MAX_PLAYERS
you should use this instead:
Код:
for(new playerid, gmax = GetMaxPlayers(); playerid < gmax; playerid++)
or you can use this one
Код:
for(new i = 0, gmax = GetMaxPlayers(); i<gmax; i++) { if(!IsPlayerConnected(i)) continue;