I'm trying to make a custom team menu by blocking the vgui and text team menus. I have the new menu showing up but it doesn't want to set the teams properly.
For some reason when it sets the users team, then forces a respawn, the user will be in 'spectate?' mode and randomly fall from the sky.
I tried using fakemeta 'pev_team' and the cstrike modules 'cs_set_user_team'.
The weird thing is that it works fine if the user was already on a team when calling the functions, but if you call the functions before selecting a team is when it will mess up.