Raised This Month: $ Target: $400
 0% 

Blocking Cvars


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
matiaslp
Senior Member
Join Date: Apr 2007
Old 08-06-2009 , 08:45   Blocking Cvars
Reply With Quote #1

Hi

I've found this piece of code, but is seems to be useless.

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

#define PLUGIN "Block Cvars"
#define VERSION "0.1"
#define AUTHOR "Zinner"

public plugin_init() {     
    
register_plugin(PLUGINVERSIONAUTHOR);
    
register_concmd("amx_cvar""CmdCvar"ADMIN_CVAR); 


public 
CmdCvar(clientlevelcid) {     
    if( !
cmd_access(clientlevelcid2) ) return PLUGIN_HANDLED_MAIN;         

    new 
cvar[32];
    new 
arg[32];
    
read_argv(1cvarsizeof(cvar) - 1);         

    if ( (
equali(cvar"mp_kickpercent")) || (equali(cvar"hostname")) ) {               
        
console_print(cid,"%s You cant change this cvar.",arg);
        return 
PLUGIN_HANDLED;     
    }         

    return 
PLUGIN_HANDLED_MAIN

Does anybody know where it's the problem?

i was told to put this plugin at the top of plugins.ini

Thanks in advance
matiaslp is offline
 


Thread Tools
Display Modes

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 18:23.


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