06.06.2017, 03:27
Код:
GetOnlinePlayers() { new player; for(new i = 0; i <= GetPlayerPoolSize(); i++) { if(IsPlayerConnected(i)) player++; } return player; } CMD:playersonline(playerid, params[]) { new string[22]; format(string, sizeof(string), "Online players: %d", GetOnlinePlayers()); SendClientMessage(playerid, -1, string); return 1; }