updated for another test
This commit is contained in:
parent
d55542aa8d
commit
c0396bf140
|
@ -5,6 +5,7 @@ public plugin_init()
|
||||||
register_plugin("Menu Tests", "1.0", "BAILOPAN")
|
register_plugin("Menu Tests", "1.0", "BAILOPAN")
|
||||||
|
|
||||||
register_clcmd("menu_test1", "Test_Menu1")
|
register_clcmd("menu_test1", "Test_Menu1")
|
||||||
|
register_clcmd("menu_test2", "Test_Menu2")
|
||||||
}
|
}
|
||||||
|
|
||||||
public Test_Menu1(id, level, cid)
|
public Test_Menu1(id, level, cid)
|
||||||
|
@ -19,6 +20,20 @@ public Test_Menu1(id, level, cid)
|
||||||
menu_addblank(menu, 7)
|
menu_addblank(menu, 7)
|
||||||
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
|
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
|
||||||
menu_display(id, menu, 0)
|
menu_display(id, menu, 0)
|
||||||
|
return PLUGIN_HANDLED
|
||||||
|
}
|
||||||
|
|
||||||
|
public Test_Menu2(id, level, cid)
|
||||||
|
{
|
||||||
|
new menu = menu_create("Character Upgrade:", "Test_Menu1_Handler")
|
||||||
|
menu_additem(menu, "Gabezilla 1", "1", 0)
|
||||||
|
menu_additem(menu, "Gabezilla 2", "2", 0)
|
||||||
|
menu_additem(menu, "Gabezilla 3", "3", 0)
|
||||||
|
menu_additem(menu, "Gabezilla 4", "4", 0)
|
||||||
|
menu_additem(menu, "Gabezilla 5", "5", 0)
|
||||||
|
menu_additem(menu, "Gabezilla 6", "6", 0)
|
||||||
|
menu_display(id, menu, 0)
|
||||||
|
return PLUGIN_HANDLED
|
||||||
}
|
}
|
||||||
|
|
||||||
public Test_Menu1_Handler(id, menu, item)
|
public Test_Menu1_Handler(id, menu, item)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user