Raised This Month: $ Target: $400
 0% 

[Help]Zombie plague Classes


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Alexblood2013
Senior Member
Join Date: Aug 2014
Old 01-01-2016 , 14:25   [Help]Zombie plague Classes
Reply With Quote #1

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 .
Alexblood2013 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode