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
1 changed files with 9 additions and 2 deletions

View File

@ -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);