The player is teleported to spectator view points ? Then you need to set player's class aswell...
Search for the plugin that clears the "only 1 team change allowed" offset on player, use that and use engclient_cmd() with jointeam and joinclass, all of these instead of cs_set_user_team().