Yeung said:
i have amx on my servers can u teach me how to block it?
Not sure about old AMX, but here's how to do it if you have AMXX.
Open notepad and enter the following:
#include <amxmodx>
public plugin_init()
{
register_plugin("block_client_cmds", "1.0", "-insert your name here-")
register_clcmd("xxx", "blockCmd")
register_clcmd("xxx", "blockCmd")
//add more if you want
}
public blockCmd()
{
return PLUGIN_HANDLED
}
Change xxx to the console command you want to block, and add as many of those lines as you need, for each console command.
Save the file as "block_client_cmds.sma". (use the quotes to make sure it saves as .sma not .txt)
Drag your .sma file onto the icon of the following file:
esf\addons\amxmodx\scripting\compile.exe
It should have created an .amxx plugin file with the same name in the following folder:
esf\addons\amxmodx\scripting\compiled\ (block_client_cmds.amxx)
Move your new plugin to the following folder:
esf\addons\amxmodx\plugins\
Now edit the following file:
esf\addons\amxmodx\configs\plugins.ini
Add "block_client_cmds.amxx" (without quotes) on a new line at the bottom of the file, and click save.
Command is now blocked... simple eh?!