Raised This Month: $ Target: $400
 0% 

Help - zp_buymenu small code fix


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-29-2018 , 09:37   Re: Help - zp_buymenu small code fix
Reply With Quote #8

Code:
stock ItemGive_Post(const id, const category, const item) {     new iItemId = zp_get_extra_item_id(ItemTodo[category][item]);     if (iItemId == -1)         return PLUGIN_CONTINUE;     if(category == KNIFE && HasKnife[id][item])     {         zp_force_buy_extra_item(id, iItemId, true)         return PLUGIN_CONTINUE;     }     if(get_currency(id) < ItemCost[category][item] || get_souls(id) < ItemSouls[category][item])         return PLUGIN_CONTINUE;     if(equal(ItemTodo[category][item], "weapon_", 7))         UTIL_GiveWeapon(id, ItemTodo[category][item])     else         zp_force_buy_extra_item(id, iItemId, true)     if(ItemCost[category][item] > 0)         set_currency(id, get_currency(id) - ItemCost[category][item])     if(ItemSouls[category][item] > 0)         set_souls(id, get_souls(id) - ItemSouls[category][item])     if(ItemFlags[category][item] & FLAG_M)         ItemUsed[id][category][item]++     else         ItemUsed[id][category][item] = ItemLimit[ROUNDS][category][item]     if(category == KNIFE)         HasKnife[id][item] = true     ItemPlayerUsed[category][item]++     return PLUGIN_CONTINUE; }
__________________








CrazY. 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 12:21.


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