From b2f4176f518bcebfd227a5306c1c7696c0e37bca Mon Sep 17 00:00:00 2001 From: BotoX Date: Sat, 31 Oct 2015 00:45:13 +0100 Subject: [PATCH] fixed infinite ammo exploit in zmarket (item_kevlar -> SetEntProp m_ArmorValue) --- src/zr/weapons/zmarket.inc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/zr/weapons/zmarket.inc b/src/zr/weapons/zmarket.inc index 038037c..7b08795 100644 --- a/src/zr/weapons/zmarket.inc +++ b/src/zr/weapons/zmarket.inc @@ -918,8 +918,15 @@ stock bool:ZMarketEquip(client, const String:weapon[], bool:rebuy = false) } } - // Give client the weapon. - GivePlayerItem(client, weaponentity); + if (StrEqual(weaponentity, "item_kevlar")) + { + SetEntProp(client, Prop_Send, "m_ArmorValue", 100); + } + else + { + // Give client the weapon. + GivePlayerItem(client, weaponentity); + } // Update cookie with new weapon. ZMarketSetRebuyCookie(client, slot, weapon);