OnPlayerGiveDamage or OnPlayerTakeDamage
#1

Set the player team to the same and make a server side health system..

wich is better? OnPlayerGiveDamage or OnPlayerTakeDamage?


I know OnPlayerTakeDamage becouse is better trust client

Or i can use them both?
Reply
#2

TakeDamage
Reply
#3

OnPlayerGiveDamage reports when the CLIENT deals damage.
OnPlayerTakeDamage reports when the CLIENT takes damage.

The difference is OnPlayerGiveDamage reports when the CLIENT hits the skin, however it doesn't mean that the player's position was the same of the skin because of SA-MP synchronization system.

OnPlayerTakeDamage instead reports when the CLIENT takes damage, just like SA-MP has ever worked.
Reply
#4

I know that .. was just a question for be sure
So i will use OnPlayerTakeDamage
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)