I have almost found the solution but i have one issue and i don't know how to fix it , if the player is in ct or t and if he is DEAD and i try to this cs_set_user_team(id, CS_TEAM_SPECTATOR) , the player goes to spec and nextround he goes back to the team where he was before going to spec any idea why is this happening thanks in advance