View Single Post
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 08-31-2018 , 15:37   Re: [CS:GO] Final and fancy solution for putting a player in a team on connect
Reply With Quote #50

PHP Code:

AddCommandListener
(Command_JoinGame"joingame");

public 
Action Command_JoinGame(int client, const char[] commandint args)
{
    
SetEntPropFloat(clientProp_Send"m_fForceTeam"0.0);
    
SetEntProp(clientProp_Send"m_iPendingTeamNum"CS_TEAM_CT);

Another way to assign a team on connect. Tested only on local server.
Ilusion9 is offline