diff --git a/src/zr/weapons/weapons.inc b/src/zr/weapons/weapons.inc index b20038c..1e56307 100644 --- a/src/zr/weapons/weapons.inc +++ b/src/zr/weapons/weapons.inc @@ -276,7 +276,7 @@ WeaponsCacheData() // ZMarket (module) new zmarketprice = KvGetNum(kvWeapons, "zmarketprice", -1); - new zmarketpurchasemax = KvGetNum(kvWeapons, "zmarketpurchasemax", 0); + new zmarketpurchasemax = KvGetNum(kvWeapons, "zmarketpurchasemax", -1); KvGetString(kvWeapons, "zmarketcommand", zmarketcommand, sizeof(zmarketcommand), ""); new Handle:arrayWeapon = GetArrayCell(arrayWeapons, x); diff --git a/src/zr/weapons/zmarket.inc b/src/zr/weapons/zmarket.inc index 8f5dd19..f9371d1 100644 --- a/src/zr/weapons/zmarket.inc +++ b/src/zr/weapons/zmarket.inc @@ -811,7 +811,7 @@ ZMarketMenuTypeWeapons(client) } // If max purchases is disabled for the weapon, then set as known integer to be later replaced. - if (purchasemax <= 0) + if (purchasemax < 0) { purchasesleft = -1; } @@ -962,7 +962,7 @@ stock bool:ZMarketEquip(client, const String:weapon[], bool:rebuy = false) new purchasemax = WeaponsGetZMarketPurchaseMax(weaponindex); new purchasecount = ZMarketGetPurchaseCount(client, weapon); new purchasesleft = purchasemax - purchasecount; - if (purchasemax > 0 && purchasesleft <= 0) + if (!rebuy && purchasemax >= 0 && purchasesleft <= 0) { TranslationPrintToChat(client, "Weapons zmarket purchase max", weapondisplay, purchasemax); return false;