new count, num, players[32]; get_players(players, num); for(new i = 0; i < num; i++) { if(cs_get_user_team(id) == CS_TEAM_T) count++; } // Count now equals the amount of connected terrorist players.