All pastes #619099 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-07-14 13:41 UTC
rendered paste body
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
}