Quote:
Originally Posted by Calg00ne
There's no SA-MP function to count how many players are online, but you can easily create one.
pawn Код:
stock CountPlayersOnline() { new iCount; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) iCount++; } return iCount; }
|
ok... so.. if i wanted to use this, i would write CountPlayersOnline(); and then printf("players online: %i", iCount); in a timer that has an interval of 10000 or something?