omg, I just realized what you are doing, you are trying to call secondary menus from a primary menu right?
Well, the way you are going about it, is by having the plugin run another menu command for the player, but you are doing it wrong..
Example of what you are doing:
Code:
// you registered:
register_clcmd("amx_hookonmenu","CmdHookOnMenu",ADMIN_MENU,"- Displays the hook on and off menu")
// then later you did:
client_cmd(id,"CmdHookOnMenu")
but it Should be like:
Code:
// you register:
register_clcmd("amx_hookonmenu","CmdHookOnMenu",ADMIN_MENU,"- Displays the hook on and off menu")
// Later on, use:
client_cmd(id,"amx_hookonmenu")
The client_cmd() function calls a Registered Client Command just like the user would when they type it in console...
You need to fix that in alot of places..