View Single Post
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-29-2019 , 18:22   Re: [HELP] Golden deagle with less dmg to get ammo pack
Reply With Quote #4

In that case:
- Hook the Ham_TakeDamage event.
- Check if the damage is done with a deagle and the player has bought a golden deagle.
- Add the amount of damage dealt in a global variable assigned to the attacker's id.
- Check if the amount of damage is >= 500. If it is -> give him the desired amount of ammo packs and substract 500 from the variable where you stored the damage.
- Instead of "ignoring" the +1 AP, simply give him +1 AP instead of +2?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom