fixed infinite ammo exploit in zmarket (item_kevlar -> SetEntProp m_ArmorValue)

This commit is contained in:
BotoX 2015-10-31 00:45:13 +01:00
parent b04f25400f
commit b2f4176f51

View File

@ -918,8 +918,15 @@ stock bool:ZMarketEquip(client, const String:weapon[], bool:rebuy = false)
} }
} }
if (StrEqual(weaponentity, "item_kevlar"))
{
SetEntProp(client, Prop_Send, "m_ArmorValue", 100);
}
else
{
// Give client the weapon. // Give client the weapon.
GivePlayerItem(client, weaponentity); GivePlayerItem(client, weaponentity);
}
// Update cookie with new weapon. // Update cookie with new weapon.
ZMarketSetRebuyCookie(client, slot, weapon); ZMarketSetRebuyCookie(client, slot, weapon);