public Open_Special_WeaponMenu(id, Type)
{
static MenuTitle[64], ItemID[4]
static WpnName[32]
switch(Type)
{
case HUMAN_SIDEKICK:
{
g_MenuSelecting[id] = 5
remove_task(id+TASK_MENU)
set_task(1.0, "SidekickMenu_Repeat", id+TASK_MENU)
formatex(MenuTitle, 63, "%L \r[%i]\w", GAME_LANG, "MENU_WEAPON_NAME", g_MenuSelecting[id])
static Menu; Menu = menu_create(MenuTitle, "MenuHandle_WeaponSK")
for(new i = 0; i < g_SWpnCount; i++)
{
if(ArrayGetCell(Ar_SWpnType, i) != HUMAN_SIDEKICK)
continue
ArrayGetString(Ar_SWpnName, i, WpnName, 31)
//num_to_str(i, ItemID, charsmax(ItemID))
num_to_str(i, ItemID, 3)
menu_additem(Menu, WpnName, ItemID)
}
menu_display(id, Menu)
}
case HUMAN_HERO:
{
g_MenuSelecting[id] = 5
remove_task(id+TASK_MENU)
set_task(1.0, "HeroMenu_Repeat", id+TASK_MENU)
formatex(MenuTitle, 63, "%L [%i]", GAME_LANG, "MENU_WEAPON_NAME", g_MenuSelecting[id])
static Menu; Menu = menu_create(MenuTitle, "MenuHandle_WeaponHR")
for(new i = 0; i < g_SWpnCount; i++)
{
if(ArrayGetCell(Ar_SWpnType, i) != HUMAN_HERO)
continue
ArrayGetString(Ar_SWpnName, i, WpnName, 31)
num_to_str(i, ItemID, 3)
menu_additem(Menu, WpnName, ItemID)
}
menu_display(id, Menu)
}
}
}