Force team before selecting one
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. |
Re: Force team before selecting one
|
Re: Force team before selecting one
Thanks, I got the player to spawn correctly (I just needed to call joinclass).
Now is there a way to force someone into spectate? It's the same problem I was having at first trying to spawn a player on a team correctly. The player says they are in spectate on the scoreboard, but they still just drop from the info_player_start points. I even tried to call 'joinclass' for the spectator but it didn't work. There must be some command to fully put the player in spectate. |
| All times are GMT -4. The time now is 16:04. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.