Raised This Month: $ Target: $400
 0% 

Help Block passing team


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 06-28-2014 , 10:30   Re: Help Block passing team
Reply With Quote #4

Allow 1 player to join CT

PHP Code:
#include <amxmodx>
#include <amxmisc> 
#include <cstrike> 

public plugin_init( )
{
    
register_clcmd"chooseteam" "Team" );
}

get_players2()

    static 
Players_ActivosCsTeams:Team
    Players_Activos 

    
new Maxplayers get_maxplayers()
    for(new 
1<= Maxplayersi++) 
    { 
        if(!
is_user_connected(i)) continue  
        
        
Team cs_get_user_team(i
        
        if(
Team == CS_TEAM_CT
        { 
            
Players_Activos++ 
        } 
        
    } 
    return 
Players_Activos 

}

public 
Teamid )
{

    if( 
get_players2() >= && !is_user_admin(id) )

    {
        
joinctid )
    }

}

public 
joinctid )
{

    if( 
get_players2() >= && !is_user_admin(id) )
    {

    return ( 
CS_TEAM_T <= cs_get_user_teamid ) <= CS_TEAM_CT );

    }


__________________

Last edited by Eagle07; 06-28-2014 at 10:30.
Eagle07 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 21:06.


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