• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Help with Damage System
#4
(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.
[Image: QIDa2vB.png]

  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: