SA-MP Forums Archive
Realstic damage - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Realstic damage (/showthread.php?tid=440825)



Realstic damage - StegooPs - 31.05.2013

Hey pepole, I am looking for that kind of code that will change the values of weapon damage.

I already saw a few guides but noone of them actually works or dosen't fully function for example, too much damage then what I wrote or it dosen't descrease the armor.

So if possible make a me a script which will also descrease armor and if there isn't it will switch to descreasing health.


Re: Realstic damage - _chimera_ - 01.06.2013

pawn Код:
if(GetPlayerWeapon(killerid) == 38) SetPlayerHealth(playerid, 0.00);
if(GetPlayerWeapon(killerid) == other id) SetPlayerHealth(playerid,other healt);
This is simple example