Respawn player after teamchange
Hey, how to respawn player correctly after teamchange???
I'm useing cs_set_user_team(id, CS_TEAM_CT) to transfer player from spectators to CT then I use user_silentkill(id), but on the first spawn he doesn't see HUD's, can use only first gun also no crosshair and he can't switch guns ;Dp x( |
Re: Respawn player after teamchange
Quote:
PHP Code:
PHP Code:
|
Re: Respawn player after teamchange
Yes, but I'm not spawning user manually. It's like his first round spawn on other round... When I transfer him from Spec to CT I don't want to spawn him instantly. Player should wait for next round and only then get spawned, but when he gets spawned he doesn't see HUD's etc.
I've a teamchange menu... Like jointeam or chooseteam... For example when player types /menu He gets menu like: Go To T Go To CT Go To Spec and if player is transfered from spec to CT or T it gets bugged... |
Re: Respawn player after teamchange
The menu blocking method isn't exactly mine - I learnt it a while ago from read through another plugin.
So try this: PHP Code:
|
Re: Respawn player after teamchange
It's not what I wanted to ask...
The problem is how can I transfer player from spectators, to Terrorists then spawn them in coming round without bugs... |
Re: Respawn player after teamchange
Well that's exactly what it does? If that's not quite what you want, atleast the functionality for it is in there. When you use the admin command to transfer players, it only changes their team. Players in spectator don't have the same things set up as a spawned player on T or CT does, which is why you can't simply transfer them. This plugin blocks the team change menu ( when you press m ) for spectators and forces a legitimate team change, which will result in the player spawning correctly the next round.
|
Re: Respawn player after teamchange
But with this player can't change teams often, doesn't he ?
|
Re: Respawn player after teamchange
I'm not exactly sure how to break the "only 1 team change per round" rule. I'll try figure it out, but hopefully someone else can help us out here?
|
Re: Respawn player after teamchange
Quote:
|
Re: Respawn player after teamchange
Yeah thanks... Is it possible to show player teammenu with Spectator option while user is alive ?
Because only dead players can see spectator option. |
| All times are GMT -4. The time now is 14:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.