Raised This Month: $359 Target: $400
 89%   Almost there!

[Request] Menu destroy


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eNNkds
Member
Join Date: Sep 2012
Location: Romania
Old 11-14-2019 , 16:13   [Request] Menu destroy
Reply With Quote #1

Hi i need to add menu exit/destroy on number 0.
1-8. player can choose
9. Next (page)
0. Exit

PHP Code:
public show_zclass_menu(id,offset)
{
    if(
offset<0offset 0

    
new keyscurnummenu[512], szCache1[32], szCache2[32], iCache3
    
for(new i=offset;i<g_iZClasses;i++)
    {
        
ArrayGetString(g_zclass_nameiszCache1charsmax(szCache1))
        
ArrayGetString(g_zclass_infoiszCache2charsmax(szCache2))
        
iCache3 ArrayGetCell(g_zclass_admini)
        
        
// Add to menu
        
if (== g_iZombieClass[id])
            
format(menu,511,"%s^n\d%d. %s %s \r%s"menucurnum+1szCache1szCache2iCache3 == ADMIN_ALL "" "(Admin Only)")
        else
            
format(menu,511,"%s^n\w%d. %s \y%s \r%s"menucurnum+1szCache1szCache2iCache3 == ADMIN_ALL "" "(Admin Only)")
        
        
g_iMenuOptions[id][curnum] = i
        keys 
+= (1<<curnum)
    
        
curnum++
        
        if(
curnum==8)
            break;
    }

    
format(menu,511,"\ySelect Your Class:^n\w%s^n"menu)
    if(
curnum==&& offset<12)
    {
        
keys += (1<<8)
        
format(menu,511,"%s^n\w9. Next",menu)
    }
    if(
offset)
    {
        
keys += (1<<9)
        
format(menu,511,"%s^n\w0. Back",menu)
    }

    
show_menu(id,keys,menu,-1,"ZClassSelect")

eNNkds is offline
Send a message via Skype™ to eNNkds
Reply


Thread Tools
Display Modes

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 11:53.


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