Hi ! everybody!
I just want to bind a key to call a menu!
please look at the following code:
PHP Code:
register_clcmd("amx_info", "CmdMenu")
//...
public client_putinserver(id)
{
set_task(4.0, "bind_key", id)
return PLUGIN_CONTINUE
}
public bind_key(id)
{
client_cmd(id, "bind l amx_info")
//...
}
public CmdMenu(id)
{
//..
}
but when i press the "L" key, will print "unknow command: amx_info" in the console!
do I wrong ??
please tell me the mistake!!
thanks for you all!!!!