I think 3rd usage would be the best, but I would change one thing:
PHP Code:
new iPlayers[32],iNum;
get_players(iPlayers,iNum,"ch");
new player;
for(new i;i < iNum;i++)
{
player = iPlayers[i];
switch(cs_get_user_team(player))
{
case CS_TEAM_SPECTATOR , CS_TEAM_UNASSIGNED:
{
/*Remove Players From Loop*/
continue;
}
}
MainMenu(player);
}