Change 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: Change weapon damage (
/showthread.php?tid=605976)
Change weapon damage -
ToySoldier - 27.04.2016
I'm trying to change the default weapon damage, but it's not working:
http://pastebin.com/tz2pPJP5
I'd appreciate if anyone could help me out, but please bear with me since I began using PAWN yesterday.
Re: Change weapon damage -
Vince - 27.04.2016
It doesn't work like that. All you're doing is setting a value to a variable which is then discarded. You would need to use OnPlayer
TakeDamage, and set the player's health manually.
Re: Change weapon damage -
ToySoldier - 27.04.2016
Can you post an example changing the damage of the desert eagle? Cause all the examples that I've seen using health do not apply to the armour value.
Re: Change weapon damage -
CalvinC - 27.04.2016
I have a tutorial you can check out in my signature about changing weapon damages with armour considered, although it's a bit old.
You can also use
this include that has some more features aswell.