Gun system - 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: Gun system (
/showthread.php?tid=582607)
Gun system -
AndreiWow - 21.07.2015
First, how to modify gun damage?
I want to make if you wear armour and get shot to the torso you wont lose hp, but if you get shot at other areas you lose just hp, not armour.
Re: Gun system -
DarkLored - 21.07.2015
Refer to this link, it checks when the player recieves damage you basically need to make if statement to detect which body part was shot and then decide how much damage it should cause.
https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage
Re: Gun system -
JaydenJason - 21.07.2015
https://sampforum.blast.hk/showthread.php?tid=558839
does anyone use search nowadays
?
Re: Gun system -
notime - 22.07.2015
Quote:
Originally Posted by JaydenJason
|
Not when they post. back 8 years ago when I first started, I did use search. But there are always people that have to ask it for the 3rd time.