Raised This Month: $ Target: $400
 0% 

detect user going team.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 03-29-2011 , 07:40   Re: detect user going team.
Reply With Quote #2

PHP Code:
#include <amxmodx>

public plugin_init() 
{
    
register_clcmd"jointeam""cmdTeam" );
    
register_clcmd"chooseteam""cmdTeam" );
}

public 
cmdTeamid )
{
    new 
arg];
    
read_argv1argcharsmaxarg ) );
    
    switch( 
str_to_numarg ) )
    {
        case 
1:
        {
            
//the player joined Terrorist
        
}
        
        case 
2:
        {
            
//the player joined Counter-Terrorist
        
}
        
        case 
6:
        {
            
//the player joined Spec
        
}
    }

hornet is offline
 



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 14:37.


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