cs2_get_user_team(id){ switch(cs_get_user_team(id)) { case CS_TEAM_UNASSIGNED: return 0; case CS_TEAM_T: return 1; case CS_TEAM_CT: return 2; case CS_TEAM_SPECTATOR: return 3; } return 0;}