Have you tried any debugging? What value is shown as the team? Also, how are you able to send a command in the milliseconds it takes to change teams? (note that I don't play Counter-Strike so it might be different than what I'm used it; in Day of Defeat, the team change is nearly instant).
Bro I marked this thread as "solved". Thanks for trying to help anyways.