Raised This Month: $ Target: $400
 0% 

[HELP] block commands console


Post New Thread Reply   
 
Thread Tools Display Modes
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
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-10-2013 , 00:09   Re: [HELP] block commands console
Reply With Quote #2

You cannot block client cvars and not every client command can be blocked. Provide a complete list of the commands or try them yourself.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
joyceteamo
Member
Join Date: Jan 2013
Old 05-10-2013 , 10:39   Re: [HELP] block commands console
Reply With Quote #3

Quote:
Originally Posted by YamiKaitou View Post
You cannot block client cvars and not every client command can be blocked. Provide a complete list of the commands or try them yourself.

I would like to specifically block in the console commands fps_max and fps_override

Last edited by joyceteamo; 05-10-2013 at 10:40.
joyceteamo is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-10-2013 , 14:07   Re: [HELP] block commands console
Reply With Quote #4

They are cvars, not commands. It is not possible to prevent the client from modifying them
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
joyceteamo
Member
Join Date: Jan 2013
Old 05-10-2013 , 21:06   Re: [HELP] block commands console
Reply With Quote #5

Quote:
Originally Posted by YamiKaitou View Post
They are cvars, not commands. It is not possible to prevent the client from modifying them
Ok thank you
joyceteamo is offline
Reply



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