Thread
:
[ANY] How to properly switch team
View Single Post
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
02-13-2019 , 03:55 Re: [ANY] How to properly switch team
#
3
Quote:
Originally Posted by
ThatOneGuy
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
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
(
iClient
,
Prop_Send
,
"m_iTeamNum"
,
0
);
Edit:
code reference #1
code reference #2
__________________
CBaseNPC
Last edited by Benoist3012; 02-13-2019 at
03:59
.
Benoist3012
View Public Profile
Send a private message to Benoist3012
Find More Posts by Benoist3012