• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Help with Damage System
#7
(2021-05-29, 08:40 PM)Snow Wrote:
(2021-05-29, 11:18 AM)Pinch Wrote: You can use the weapon-config
https://github.com/oscar-broman/samp-weapon-config

The op clearly mentioned he does not want to use any includes/fs.
You can modify the damage under OnPlayerTakeDamage & OnPlayerGiveDamage. Like this
Code:
if(weaponid == 26)
{
    SetPlayerHealth(playerid/issuerid, -60.0);    
}
This will remove 60% of the player's health. Use issuer/player id accordingly to the callback.
But I'd still recommend you to use the weapon-config as that's pretty much better than configuring each and everything on your own.
The op clearly opened 3 threads on 3 different languages (he didn't mention that he didn't want to use WC, quite the opposite in other ones) and sent me PMs of asking how to install SKY too.
Using Pawn.CMD?

If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
  Reply


Messages In This Thread
Help with Damage System - by icecoldkangaroo12 - 2021-05-29, 01:16 AM
RE: Help with Damage System - by ImFlanny - 2021-05-29, 02:42 AM
RE: Help with Damage System - by Pinch - 2021-05-29, 11:18 AM
RE: Help with Damage System - by Snow - 2021-05-29, 08:40 PM
RE: Help with Damage System - by Pinch - 2021-05-31, 03:58 PM
RE: Help with Damage System - by Y_Less - 2021-05-31, 10:28 AM
RE: Help with Damage System - by Snow - 2021-05-31, 11:31 PM
RE: Help with Damage System - by Radical - 2021-06-03, 07:15 AM
RE: Help with Damage System - by Pinch - 2021-06-03, 09:53 AM
RE: Help with Damage System - by Pinch - 2021-06-03, 06:29 PM

Forum Jump: