stock CurrentPlayers() { new players = 0; for(new i = 0; i <= MAX_PLAYERS; i++) { // Loop through all the avliable slots if(IsPlayerConnected(i)) { // Check if player is connected players++; // Add up player count } } return players; // Return how many players are connected }