fixed infinite ammo exploit in zmarket (item_kevlar -> SetEntProp m_ArmorValue)
This commit is contained in:
parent
b04f25400f
commit
b2f4176f51
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user