Hey , i want to make a change to my menu of Zombie plague.
There is the menu
// Zombie Class Menu
public show_menu_zclass(id)
{
// Player disconnected
if (!g_isconnected[id])
return;
// Bots pick their zombie class randomly
if (g_isbot[id])
{
g_zombieclassnext[id] = random_num(0, g_zclass_i - 1)
return;
}
static menuid, menu[128], class, buffer[32], buffer2[32]
// Title
formatex(menu, charsmax(menu), "Zombie Class\r")
menuid = menu_create(menu, "menu_zclass")
// Class List
for (class = 0; class < g_zclass_i; class++)
{
// Retrieve name and info
ArrayGetString(g_zclass_name, class, buffer, charsmax(buffer))
ArrayGetString(g_zclass_info, class, buffer2, charsmax(buffer2))
// Add to menu
if (class == g_zombieclassnext[id])
formatex(menu, charsmax(menu), "\d%s [%s]", buffer, buffer2)
else
formatex(menu, charsmax(menu), "%s \r[%s]", buffer, buffer2)
buffer[0] = class
buffer[1] = 0
menu_additem(menuid, menu, buffer)
}
// Back - More - Exit
formatex(menu, charsmax(menu), "Back")
menu_setprop(menuid, MPROP_BACKNAME, menu)
formatex(menu, charsmax(menu), "More")
menu_setprop(menuid, MPROP_NEXTNAME, menu)
formatex(menu, charsmax(menu), "Exit")
menu_setprop(menuid, MPROP_EXITNAME, menu)
menu_display(id, menuid)
}
This is like : When press M 2 There will apear Classes " Normal zombie , jumper... etc
I want to make a categori to select between Normal Zombie classes and Vip Zombie Classes.
So my menu will be like:
1. New weapons
2.Extra items
3.Zm class
4.Spectator
5.adminmenu
....
And when i press 2 a new menu will apear:
1.Normal Zombie
2.Vip Zombie
And i want to plugin reconise what class is for vip and what is for normal.
I user arnaaas plugin 1,7.1 , Classes should automate go to their category , Normal zombie or VIP zombie, like it do now ( only for normal zombies)
Thanks , i hope you understand me and ask
If this menu would be in newstyle i would know how to do , but i don't reconise it , how it work , and zombie plague is a new thing for me .
|