[HELP] Moving from spec to team issue
When I use cs_set_user_team to move a player from spec to a team.
That player spawns with a glitched hud and some features disabled. Anyone know how to move from spec to team properly to avoid this? Thanks. |
Re: [HELP] Moving from spec to team issue
Not sure if this will fix it but try ExecuteHam( Ham_CS_RoundRespawn , id )
|
Re: [HELP] Moving from spec to team issue
Quote:
Players being transferred to spec from a team, and then assigned to a team are not experiencing any problems. It's when you are already in spec, and then transferred to a team that this issue occurs. Note that there is a line preventing spectators from being moved to spec, so this is not the issue. Thank you. Code:
|
Re: [HELP] Moving from spec to team issue
After you set the team
PHP Code:
|
Re: [HELP] Moving from spec to team issue
This problem happens when player is blocked from his 1st join try executing jointeam command on the player, and the team number as its 1st argument.
In get_players(players, playercount) You can pass in 3rd param flag h to skip retrieving hltv |
Re: [HELP] Moving from spec to team issue
Quote:
I tried "manually" setting the player team using jointeam and menuselect. The player could not respawn at all after doing this, I also tried adding the Ham_CS_RoundRespawn. Then a combination of the two, and both on their own. The only ideas I have left is to just ask everyone to join a team, or just having everyone "retry". And ofc you could set the teams with players already in a team, but it does not look very nice. Also you could use jointeam and menuselect on all the players I guess.. |
Re: [HELP] Moving from spec to team issue
After setting user team you need to also set his class by joinclass command
|
Re: [HELP] Moving from spec to team issue
Quote:
I tried manually picking slot5 and all kinds of things, I think I'm gonna have to give up on this one. I also had to add delay and stuff to sort of make it work, looks really messy now.. Anyways, thanks! |
Re: [HELP] Moving from spec to team issue
Can you provide specifics on what HUD items are glitched and features disabled?
Also a step-by-step to reproduce the issue would help. |
Re: [HELP] Moving from spec to team issue
Check auto join on connect plugin
|
| All times are GMT -4. The time now is 04:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.