Quote:
Originally Posted by Hunter-Digital
It actually is possible... I made this check with statsme a long time ago... you CAN check whenever a player uses an unknown command but CANNOT check if a player has a command that is aliased... or... you could... by sending it and expect unknown command, if you receive it, it's not set, if not, it's aliased 
...
|
Thank!,but i got some problem
i compile the code
PHP Code:
#include <amxmodx>
#include <amxmisc>
public plugin_init() {
register_plugin("New Plug-In", "1.0", "Administrator")
register_event("TextMsg", "hook_textMsg", "b", "2=#Game_unknown_command")
}
public client_putinserver(id)
{
client_cmd(id,"Apple")
}
public hook_textMsg(id, msg[], cmd[])
{
new name[30]
get_user_name(id,name,29)
server_print("%s - unknown command: %s", name, cmd)
return PLUGIN_CONTINUE
}
when PlayerA use the unknowcommand,it's print the msg "PlayerA - unknow command: New Plug-In"