fnGetRandomCT() { new id, check_vl while (!check_vl) { id = random_num(1, get_maxplayers()) if (is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT) check_vl = 1 } return id }