26.02.2012, 22:38
The differences between OnPlayerGiveDamage and OnPlayerTakeDamage:
OnPlayerGiveDamage
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)
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.