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

Suggestion / Subplugin Request [ZPA] Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
amir saiaoud
Senior Member
Join Date: May 2015
Location: essaouira , maroc
Old 10-01-2015 , 17:29   [ZPA] Help
Reply With Quote #1



i need this if you dont have the full cost te name of the extra will be grey :/
sorry for my bad english
thank's for helping
__________________
amir saiaoud is offline
Send a message via Skype™ to amir saiaoud
thekiller123
Member
Join Date: Dec 2012
Old 10-01-2015 , 18:53   Re: [ZPA] Help
Reply With Quote #2

In zombie_plague40.sma

Edit:

PHP Code:
// Add Item Name and Cost
formatex(menucharsmax(menu), "%s \y%d %L"bufferArrayGetCell(g_extraitem_costitem), id"AMMO_PACKS2")
buffer[0] = item
buffer
[1] = 0
menu_additem
(menuidmenubuffer
for:

PHP Code:
// Add Item Name and Cost
formatex(menucharsmax(menu), "%s%s \y%d %L"g_ammopacks[id] < ArrayGetCell(g_extraitem_costitem) ? "\d" "\w"buffer,  ArrayGetCell(g_extraitem_costitem), id"AMMO_PACKS2")
buffer[0] = item
buffer
[1] = 0
menu_additem
(menuidmenubuffer
thekiller123 is offline
Chihuahuax
Senior Member
Join Date: Oct 2014
Location: Malaysia
Old 10-01-2015 , 21:24   Re: [ZPA] Help
Reply With Quote #3

Quote:
Originally Posted by thekiller123 View Post
In zombie_plague40.sma

Edit:

PHP Code:
// Add Item Name and Cost
formatex(menucharsmax(menu), "%s \y%d %L"bufferArrayGetCell(g_extraitem_costitem), id"AMMO_PACKS2")
buffer[0] = item
buffer
[1] = 0
menu_additem
(menuidmenubuffer
for:

PHP Code:
// Add Item Name and Cost
formatex(menucharsmax(menu), "%s%s \y%d %L"g_ammopacks[id] < ArrayGetCell(g_extraitem_costitem) ? "\d" "\w"buffer,  ArrayGetCell(g_extraitem_costitem), id"AMMO_PACKS2")
buffer[0] = item
buffer
[1] = 0
menu_additem
(menuidmenubuffer
Wow really cool
I actually did this:
PHP Code:
// Add Item Name and Cost
        
if (g_ammopacks[id] >= ArrayGetCell(g_extraitem_costitem))
            
formatex(menucharsmax(menu), "%s \y%d %L"bufferArrayGetCell(g_extraitem_costitem), id"AMMO_PACKS2")
        else
            
formatex(menucharsmax(menu), "%s \d%d %L"bufferArrayGetCell(g_extraitem_costitem), id"AMMO_PACKS2")
            
        
buffer[0] = item
        buffer
[1] = 0
        menu_additem
(menuidmenubuffer
p.s. dont use mine i did mistakes

Last edited by Chihuahuax; 10-01-2015 at 21:34.
Chihuahuax is offline
Send a message via Skype™ to Chihuahuax
amir saiaoud
Senior Member
Join Date: May 2015
Location: essaouira , maroc
Old 10-02-2015 , 06:25   Re: [ZPA] Help
Reply With Quote #4

okay thank's @Chihuahuax
the killer thank's too ^_^
__________________

Last edited by amir saiaoud; 10-02-2015 at 06:29.
amir saiaoud is offline
Send a message via Skype™ to amir saiaoud
amir saiaoud
Senior Member
Join Date: May 2015
Location: essaouira , maroc
Old 10-02-2015 , 06:44   Re: [ZPA] Help
Reply With Quote #5


thank's all
__________________
amir saiaoud is offline
Send a message via Skype™ to amir saiaoud
Reply



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:31.


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