Weapon 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: Weapon Damage (
/showthread.php?tid=387150)
Weapon Damage -
Blackazur - 23.10.2012
How can i change the weapon damage?
Re: Weapon Damage -
lorizz - 23.10.2012
you can't :S
Re: Weapon Damage -
gtakillerIV - 23.10.2012
Use
OnPlayerTakeDamage.
Re: Weapon Damage -
Dizzle - 23.10.2012
Put this under OnPlayerTakeDamage
Код:
new Float:HP;
GetPlayerHealth(playerid, HP);
if(weaponid == change) SetPlayerHealth(playerid, HP-change); // change this to the weapon ID you want and how much health it will take from the other player per hit.
return 1;