I don't know why this isn't working.
PHP Code:
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++;
}
It should get all team players for CT including bots, It firstly shows correct CT count, I have put it in /show event. So when I retype /show it doubles the CT count, for another /show. It doubles again and so on.
Why doesn't it work? I have tried it with live players too.