View Single Post
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 02-13-2019 , 01:15   Re: [ANY] How to properly switch team
Reply With Quote #2

If the undesired affects you are referring to is the suicide, you can avoid that simply by doing something like the following:

PHP Code:
void ChangeTeam_NoKill(int clientint iTeam)
{
    if(
IsValidClient(client))
    {
        
int iEntProp GetEntProp(clientProp_Send"m_lifeState");
        
SetEntProp(clientProp_Send"m_lifeState"2);
        
ChangeClientTeam(clientiTeam);
        
SetEntProp(clientProp_Send"m_lifeState"iEntProp);
    }

Edit: I see that you state you cannot do it by changing the alive state. It has always worked for me.
__________________

Last edited by ThatOneGuy; 02-13-2019 at 01:18.
ThatOneGuy is offline