Raised This Month: $32 Target: $400
 8% 

solved


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shady101
Member
Join Date: Nov 2014
Location: USA
Old 10-20-2018 , 02:49   solved
Reply With Quote #1

solved


Hey, I was trying to edit the extra items menu for zombie plague to change the color of the numbers that come before the extra items name. for example

1. Item 1
2. item 2
^ that number is the one i wanted to change, but i couldn't find it anywhere in the menu code. Did i miss it or is it really not there?

PHP Code:
show_items_menu(id)
{
    static 
menu[128], name[32], desc[32], cost
    
new menuidindexitemdata[2]
    
    
// Title
    
formatex(menucharsmax(menu), "%L:\y"id"MENU_EXTRABUY")
    
menuid menu_create(menu"menu_extraitems")
    
    
// Item List
    
for (index 0index g_ItemCountindex++)
    {
        
// Additional text to display
        
g_AdditionalMenuText[0] = 0
        
        
// Execute item select attempt forward
        
ExecuteForward(g_Forwards[FW_ITEM_SELECT_PRE], g_ForwardResultidindex0)
        
        
// Show item to player?
        
if (g_ForwardResult >= ZP_ITEM_DONT_SHOW)
            continue;
        
        
// Add Item Name and Cost
        
ArrayGetString(g_ItemNameindexnamecharsmax(name))
        
ArrayGetString(g_ItemDescindexdesccharsmax(desc))
        
cost ArrayGetCell(g_ItemCostindex)
        
        
// Item available to player?
        
if (g_ForwardResult >= ZP_ITEM_NOT_AVAILABLE)
            
formatex(menucharsmax(menu), "\y%s \w(%s) \y%d %L \d%s"namedesccostid"MSG_AMMOPACKS"g_AdditionalMenuText)
        else
            
formatex(menucharsmax(menu), "\y%s \w(%s) \y%d %L \w%s"namedesccostid"MSG_AMMOPACKS"g_AdditionalMenuText)
        
        
itemdata[0] = index
        itemdata
[1] = 0
        menu_additem
(menuidmenuitemdata)
    }
    
    
// No items to display?
    
if (menu_items(menuid) <= 0)
    {
        
menu_destroy(menuid)
        return;
    }
    
    
// Back - Next - Exit
    
formatex(menucharsmax(menu), "%L"id"MENU_BACK")
    
menu_setprop(menuidMPROP_BACKNAMEmenu)
    
formatex(menucharsmax(menu), "%L"id"MENU_NEXT")
    
menu_setprop(menuidMPROP_NEXTNAMEmenu)
    
formatex(menucharsmax(menu), "%L"id"MENU_EXIT")
    
menu_setprop(menuidMPROP_EXITNAMEmenu)
    
    
// If remembered page is greater than number of pages, clamp down the value
    
MENU_PAGE_ITEMS min(MENU_PAGE_ITEMSmenu_pages(menuid)-1)
    
    
// Fix for AMXX custom menus
    
set_pdata_int(idOFFSET_CSMENUCODE0)
    
menu_display(idmenuidMENU_PAGE_ITEMS)


Last edited by shady101; 10-20-2018 at 03:58.
shady101 is offline
Old 11-06-2018, 06:15
CrazY.
This message has been deleted by CrazY.. Reason: Nvm
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 18:03.


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