10.06.2016, 15:36
Hello,
This script is not working properly for some reason. Everytime I shoot someone, it gives back player's health/armor. It's supposed to take more damage when shot to head and default damage when shot to any other bodypart (e.g deagle takes 65 dmg to head and 45 dmg to other bodyparts). Anybody knows what's the problem? When I set only one damage value for a weapon (e.g case 24: damage = 45; ) then it works good.
Here's the code: http://pastebin.com/hamuRN4r
This script is not working properly for some reason. Everytime I shoot someone, it gives back player's health/armor. It's supposed to take more damage when shot to head and default damage when shot to any other bodypart (e.g deagle takes 65 dmg to head and 45 dmg to other bodyparts). Anybody knows what's the problem? When I set only one damage value for a weapon (e.g case 24: damage = 45; ) then it works good.
Here's the code: http://pastebin.com/hamuRN4r