Posts: 2,175
Threads: 235
Joined: Sep 2009
Reputation:
0
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?
Posts: 221
Threads: 20
Joined: Apr 2011
Reputation:
0
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.
Posts: 2,175
Threads: 235
Joined: Sep 2009
Reputation:
0
I know that .. was just a question for be sure
So i will use OnPlayerTakeDamage