Transfer from spec or no-team
There is a bug when u join a team (T or CT) by admin transfer command (using default plugin) from spectators or no team chosen (w/o spawned once, just after connect). So if player spawns after such action he gets no weapon and HUD is not displayed. I know how to catch this bad spawn, but dunno how to improve. Any ideas?
|
Re: Transfer from spec or no-team
Perhaps you could use a variable to detect whether it's their first spawn and if they came from Spec, and then when they spawn respawn them using Ham_CS_RoundRespawn. Idea not tested.
|
Re: Transfer from spec or no-team
Respawn doesn't help after first bad spawn, only reconnect and manual choosing team improves it. Must be some key values that I need to set, but dunno which.
|
Re: Transfer from spec or no-team
Here's a test subject that I wrote to try and solve this issue. I think it could be quite useful to you. Although I still can't figure out why it won't instant spawn me.
PHP Code:
|
Re: Transfer from spec or no-team
Thanks, rly useful! Working version:
PHP Code:
|
Re: Transfer from spec or no-team
ExecuteHam(Ham_CS_RoundRespawn, id) is actually spawning the Player, you rather delay that instead of adding nonsens to the plugin :)
|
Re: Transfer from spec or no-team
Quote:
Hmmm I did try adding a task for spawning but maybe I did that before I'd found the other issue. No probs. |
Re: Transfer from spec or no-team
Try to set m_iDefaultItems (120) before PlayerSpawn
Also, as I remember, maybe there's another offset to set to update hud |
| All times are GMT -4. The time now is 00:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.