Raised This Month: $ Target: $400
 0% 

[HELP] block commands console


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
joyceteamo
Member
Join Date: Jan 2013
Old 05-09-2013 , 22:09   [HELP] block commands console
Reply With Quote #1

can someone edit this plugin to block also commands in the console such as ex: fps_max, fps_override, kill, etc.

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 this command.!" );
        return 
PLUGIN_HANDLED;
    }
    
    return 
PLUGIN_CONTINUE;

joyceteamo 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 10:57.


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