Raised This Month: $51 Target: $400
 12% 

[HELP]Auto side chose


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
soumyadip77
Senior Member
Join Date: Jul 2017
Location: INDIA,KOLKATA
Old 05-18-2018 , 09:54   [HELP]Auto side chose
Reply With Quote #1

Guys i want chat when player will enter / join the server if his steamid is not registered he will kick and we will decide there teams with this here you can chek my code but it is not working any one help plz


PHP Code:
/* Sublime AMXX Editor v2.2 */

#include <amxmodx>
#include <amxmisc>
#include <reapi>

#define PLUGIN  "New Plug-In"
#define VERSION "1.0"
#define AUTHOR  "Author"

new n_steamidMAX_PLAYERS ];
new 
n_connectidMAX_PLAYERS ];
new 
filename256 ];

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
get_configsdir(filename,255);
    
format(filename,255,"%s/matchplayers.ini",filename);
}

public 
client_authorizedid )
{
    
get_user_authid(idn_connectidcharsmaxn_connectid ));
}

public 
client_putinserver(id)
{
    new 
linelenData128 ];
    new 
team];

    while((
line read_filefilename line Data 127 len) ) != 
    {
          
parse(Datateam,7n_steamid,7);

        if( 
n_connectid[id] != n_steamid[id] )
        {
            
server_cmd("amx_kick #%s You Have No Entry To The Server^n"n_steamid);
        }

          if( 
equalteam"CT") )
          {
              
rg_set_user_team(idTEAM_CTMODEL_AUTOtrue);

        }

        if( 
equalteam"TT") )
          {
              
rg_set_user_team(idTEAM_TERRORISTMODEL_AUTOtrue);

        }
    }


soumyadip77 is offline
Send a message via Skype™ to soumyadip77
 



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 04:09.


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