Hi all i want some help with my plugin that i wanted to make i dont know if you lot can make it but here it goes
my code is
Code:
#include <amxmodx>
#include <amxmisc>
new mAdminMenu // Menu
new mcbAdminMenu // Menu Callback
public plugin_init() {
/* Menu Admin Menu */
/* Use menu_display(id, mAdminMenu, 0) to show the menu to an user. */
mAdminMenu = menu_create("Admin Menu", "mh_AdminMenu")
mcbAdminMenu = menu_makecallback("mcb_AdminMenu")
menu_additem(mAdminMenu, "Restart Server (20)", "ma_AdminMenu", ADMIN_IMMUNITY, mcbAdminMenu)
menu_additem(mAdminMenu, "Shutdown Server (20)", "ma_AdminMenu", ADMIN_IMMUNITY, mcbAdminMenu)
/* Menu End */
register_plugin("Admin Menu", "1.0", "Umar Salim")
register_clcmd("amx_adminmenu", "mAdminMenu")
}
/* Menu Admin Menu */
public mh_AdminMenu(id, menu, item) {
/* This event is called when someone presses a key on this menu */
}
public ma_AdminMenu(id) {
/* This event is called when an item was selected */
}
public mcb_AdminMenu(id, menu, item) {
/* This is the callback-event, here you can set items enabled or disabled. */
/* If you want to enable an item, use: return ITEM_ENABLED */
/* If you want to disable an item, use: return ITEM_DISABLED */
}
now u see this "register_clcmd("amx_adminmenu", "mAdminMenu")" the mAdminMenu i dont know it that is it and thats the code and i dont know what to register_clcmd i know that i want "amx_adminmenu" to go to this menu i made but i dont know what to bind that to can sum1 help me out :S ?
~ umarsa