AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   detect user going team. (https://forums.alliedmods.net/showthread.php?t=153787)

zombieplague 03-29-2011 07:17

detect user going team.
 
how to detect if a player has join ct or t ??

hornet 03-29-2011 07:40

Re: detect user going team.
 
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
        
}
    }




All times are GMT -4. The time now is 14:37.

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