22.05.2016, 17:33
Use a loop,
PHP код:
new usersOnline = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
usersOnline++;
}
}