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(PLUGIN, VERSION, AUTHOR);
register_concmd("amx_cvar", "CmdCvar", ADMIN_CVAR);
}
public CmdCvar(client, level, cid) {
if( !cmd_access(client, level, cid, 2) ) return PLUGIN_HANDLED_MAIN;
new cvar[32];
new arg[32];
read_argv(1, cvar, sizeof(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