03.09.2015, 11:44
PHP код:
GetConnectedPlayers()
{
new
ConnectedPlayers;
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (!IsPlayerConnected(i) || i == INVALID_PLAYER_ID) continue;
ConnectedPlayers++;
}
return ConnectedPlayers;
}