View Single Post
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 02-13-2019 , 03:55   Re: [ANY] How to properly switch team
Reply With Quote #3

Quote:
Originally Posted by ThatOneGuy View Post
If the undesired affects you are referring to is the suicide, you can avoid that simply by doing something like the following:

PHP Code:
code 
Edit: I see that you state you cannot do it by changing the alive state. It has always worked for me.
Quote:
Originally Posted by Benoist3012 View Post
However some plugins want to move players to spec team but keep them alive, which is impossible to do with ChangeClientTeam even by changing the player alive state, as they will be forcibly be put in observer mode.
So most will do:
PHP Code:
SetEntProp(iClientProp_Send"m_iTeamNum"0); 
Edit:
code reference #1
code reference #2
__________________

Last edited by Benoist3012; 02-13-2019 at 03:59.
Benoist3012 is offline