This code checks if its 8 terroist alive
but how can i check if 8 and under 8 terroist alive?
Code:
new t_count, ct_count, num, players[32], tempid
get_players ( players, num )
for ( new i = 0; i < num; i++ )
{
tempid = players [ i ]
if ( cs_get_user_team ( tempid ) == CS_TEAM_T && is_user_alive ( tempid ) )
t_count++
if ( cs_get_user_team ( tempid ) == CS_TEAM_CT && is_user_alive ( tempid ) )
ct_count++
}
if ( t_count == 8 )
{
RandomCT()
}
__________________