OnPlayerGiveDamage doesn't detect some types of damage
#6

The differences between OnPlayerGiveDamage and OnPlayerTakeDamage:

OnPlayerGiveDamage

pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
  • True and fake damage are recordable on its bully's screen. (In short will be only called without using the "lag shot")
  • Will be NOT always called if a player has been damaged.
  • Not a trustable callback to write an anti cheating system in (Of course it depends on you if you do it right)
OnPlayerTakeDamage
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
  • Mostly real damage is recordable by it (Victim side damage)
  • Almost a perfect callback to write an anti cheating system in.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)