Custom Weapons
#2

It'll be done on OnPlayerTakeDamage. What they are doing is using the Deagle as a weapon, and modifying the damage taken in the callback.

There's a limited amount of examples because no-one has shown how it's done, but on the Wiki there's a couple of examples of a debug (Displays what damage was done by the actual gun), and a headshot system , but another decent example of using the callback itself is https://sampforum.blast.hk/showthread.php?tid=462189 which shows just a couple more options in this.


Though they aren't directly what you're wanting, they are still something to read up on to get into the callback itself.
Reply


Messages In This Thread
Custom Weapons - by oSAINTo - 16.08.2016, 15:14
Re: Custom Weapons - by Sew_Sumi - 16.08.2016, 15:32
Re: Custom Weapons - by oSAINTo - 16.08.2016, 15:38
Re: Custom Weapons - by Sew_Sumi - 16.08.2016, 15:47

Forum Jump:


Users browsing this thread: 1 Guest(s)