DragosHh
06-18-2010, 04:40
Hello guys!
I'm trying to make a plugin wich block the "+use" command or detect the use key pressing, and block the command.
Until now i did this, but doesn't block the "+use" command.
#include <amxmodx>
#include <amxmisc>
public plugin_init() {
register_plugin("Block use cmd", "1.0", "DragosHh")
register_clcmd("+use", "block_cmd")
}
public block_cmd(id) {
client_print(id,print_center,"U cannot use the use key!")
return PLUGIN_HANDLED
}
--------------
Thanks in advance and sorry for my bad English.
I'm trying to make a plugin wich block the "+use" command or detect the use key pressing, and block the command.
Until now i did this, but doesn't block the "+use" command.
#include <amxmodx>
#include <amxmisc>
public plugin_init() {
register_plugin("Block use cmd", "1.0", "DragosHh")
register_clcmd("+use", "block_cmd")
}
public block_cmd(id) {
client_print(id,print_center,"U cannot use the use key!")
return PLUGIN_HANDLED
}
--------------
Thanks in advance and sorry for my bad English.