new TeamCount = 0;for(new i; i < MAX_PLAYERS; i++){ if(IsPlayerConnected(i)) { if(gTeam[i] == TEAM_NAME) { TeamCount++; } }}