View Full Version : Weapon damage

02/05/2016, 05:55 PM
I'm struggling with math and script.. how could the code look like to detect how much armour was taken from player on gun hit?

so like.. it will store that hit to variable and there will be like msg "x amount of armour was taken with gun shot"

02/05/2016, 07:09 PM

witch bodypart has been hit -> if has armour -> if they have, take amount of armour instead of health

also, you can make variable to set weapon damages and if you want even more specific you can make another one - also, if you are not lazy you could add distance of the shot and make even more accurate damage amount. lol easy.

if you are new at scripting (even you shouldn't be by looking at your profile) http://forum.sa-mp.com/showthread.php?t=330005
it's not the best tut, but you could get idea of how to make your own one.