Hey guys i search all forum but cant finde, how can i loop to see is there is one ct left i want to protect respawn if one ct left,thanks in advance, here is waht im trying to do:
PHP Code:
public bla bla(id)
{
new iPlayers[32], iNum, id;
new tdi = get_players(iPlayers, iNum, "1", "CT");
/* --| If already has item, show a damn print and return */
if(tdi && cs_get_user_team(id) == CS_TEAM_T && cs_get_user_team(id) == CS_TEAM_SPECTATOR)
{
client_print( id, print_chat, "" );
return PLUGIN_HANDLED;
}
ExecuteHamB( Ham_CS_RoundRespawn, id );
return PLUGIN_HANDLED;
}
__________________