Raised This Month: $ Target: $400
 0% 

detect user going team.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zombieplague
Veteran Member
Join Date: Apr 2009
Old 03-29-2011 , 07:17   detect user going team.
Reply With Quote #1

how to detect if a player has join ct or t ??
zombieplague is offline
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
Old 04-04-2011, 21:13
Rirre
This message has been deleted by Rirre.
Reply


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


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