16.08.2016, 15:32
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.
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.