|
Senior Member
Join Date: Oct 2014
Location: Malaysia
|
10-01-2015
, 21:24
Re: [ZPA] Help
|
#3
|
Quote:
Originally Posted by thekiller123
In zombie_plague40.sma
Edit:
PHP Code:
// Add Item Name and Cost formatex(menu, charsmax(menu), "%s \y%d %L", buffer, ArrayGetCell(g_extraitem_cost, item), id, "AMMO_PACKS2") buffer[0] = item buffer[1] = 0 menu_additem(menuid, menu, buffer)
for:
PHP Code:
// Add Item Name and Cost formatex(menu, charsmax(menu), "%s%s \y%d %L", g_ammopacks[id] < ArrayGetCell(g_extraitem_cost, item) ? "\d" : "\w", buffer, ArrayGetCell(g_extraitem_cost, item), id, "AMMO_PACKS2") buffer[0] = item buffer[1] = 0 menu_additem(menuid, menu, buffer)
|
Wow really cool
I actually did this:
PHP Code:
// Add Item Name and Cost if (g_ammopacks[id] >= ArrayGetCell(g_extraitem_cost, item)) formatex(menu, charsmax(menu), "%s \y%d %L", buffer, ArrayGetCell(g_extraitem_cost, item), id, "AMMO_PACKS2") else formatex(menu, charsmax(menu), "%s \d%d %L", buffer, ArrayGetCell(g_extraitem_cost, item), id, "AMMO_PACKS2") buffer[0] = item buffer[1] = 0 menu_additem(menuid, menu, buffer)
p.s. dont use mine i did mistakes
Last edited by Chihuahuax; 10-01-2015 at 21:34.
|
|
|
|