this is a plugin for hookmenu you can use it when you type amx_hookmenu in console and you will see a hookmenu
with all commands I only added 1 to see if it works but it doesn't so
plz help
Code:
#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
register_plugin("Hook Menu","1.0","[iwek]Nightscream")
register_concmd("amx_hook_on","cmdhook_on",ADMIN_MENU,"turns hookmod on and off")
register_menucmd(register_menuid("\yHookMenu"), 1023, "actionHookmenu")
return PLUGIN_CONTINUE
}
/*-------------------------------------Hook on--------------------------------------------------*/
public Hook_on() {
server_cmd("DF_hook_on")
}
/*-------------------------------------Main Menu------------------------------------------------*/
public actionHookmenu(id, key) {
switch(key) {
case 0: {
client_cmd(id, "amx_hookmenu")
}
case 2: {
client_cmd(id, "amx_hookmenu")
log_amx("[Hookmenu] ^"%s<%d><%s><>^" Turns Hook mod on and off", name, get_user_userid(id), authid)
}
}
return PLUGIN_HANDLED
}
public showHookmenu(id, level, cid) {
if (!cmd_access(id, level, cid, 1))
return PLUGIN_HANDLED
new menu[256]
format(menu, 255, "\yHookMenu^n^n\w1. turns hook on and off^n\w0. Exit")
show_menu(id, ((1<<0)|(1<<1)), menu)
return PLUGIN_HANDLED
}
__________________