Raised This Month: $ Target: $400
 0% 

[CS:GO] Final and fancy solution for putting a player in a team on connect


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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 #34

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
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode