SA-MP Forums Archive
OnPlayerTakeDamage - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerTakeDamage (/showthread.php?tid=426632)



OnPlayerTakeDamage - audriuxxx - 29.03.2013

Hi,

OnPlayerTakeDamage is same OnPlayerGiveDamage?


Re: OnPlayerTakeDamage - SuperViper - 29.03.2013

OnPlayerTakeDamage is called when the TARGET sees the bullet damage himself. Basically this callback is the standard one you should use. Consider this as being called when the player is shot with lag shooting.

OnPlayerGiveDamage is called when the SHOOTER sees the bullet damage the target. Consider this as being called when the player is shot without lag shooting.