View Single Post
Author Message
DreamWorks
Senior Member
Join Date: Mar 2012
Old 04-14-2012 , 10:03   [HELP] Block "JoinTeam" [Plzzz!] [URGENTLY]
Reply With Quote #1

Hello, in my jailbreak, some players can enter to the counter terrorist team

This plugin block users only if they are in a team... but when users enter in the server (for the first time) they can enter by writing : "jointeam 02" in the console...

So how can i block them when they join the server, then block them from writing "jointeam 02"

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

public plugin_init( )
{
    
register_plugin"Block jointeam""0.1""Exolent" );
}

public 
client_commandclient )
{
    static const 
szJoinCommand[ ] = "jointeam";
    
    static 
szCommand10 ];
    
read_argv0szCommand);
    
    if( 
equalszCommandszJoinCommand )
    && 
CS_TEAM_T <= cs_get_user_teamclient ) <= CS_TEAM_CT )
    {
        
console_printclient"You cannot use jointeam while on a team! BOT!" );
        return 
PLUGIN_HANDLED;
    }
    
    return 
PLUGIN_CONTINUE;

DreamWorks is offline