PHP Code:
new players[32], numT
get_players( players, numT, "ae", "TERRORIST" )
Yes, the number or alive terrorists will be saved in the numT variable.
PHP Code:
static i
for(i = 1; i <= g_max_clients; i++)
if(is_user_alive(i) && cs_get_user_team(i) == CS_TEAM_T)
set_user_health(i, 100)
Since you use get_players, it's better to make this loop like this:
PHP Code:
static i
for(i = 0; i < numT; i++)
set_user_health(players[i],100)
In players array you have the indexes of all alive terrorists.
__________________