Hi, i play team fortress classic 1.6, and in this game these two commands are ilegal, so i want to block them.
I tried some CVAR and command blockers but didn't work so i decided to make my own plugin... Basically when these two commands are executed i want to kick the user, but the plugin doesn't work and it's seem to be all ok...
Here is the code:
Code:
#include <amxmodx>
public plugin_init()
{
register_plugin("CMDBlock","1.0","CMDBlock")
register_clcmd("centerview","block")
register_clcmd("force_centerview","block")
register_concmd("centerview","block")
register_concmd("force_centerview","block")
}
public block(id){
new name[32]
get_user_name(id, name, 31)
client_print(0, print_chat, "%s has been kicked for using an ilegal command", name)
return PLUGIN_HANDLED;
}
Any ideas?
Thanks!