Talk:OnPlayerGiveDamage

From SA-MP Wiki

Jump to: navigation, search

'One thing you can do with GiveDamage is detect when other players report that they have damaged a certain player, and that player hasn't taken any health loss. You can flag those players as suspicious. You can also set all players to the same team (so they don't take damage from other players) and process all health loss from other players manually.

You might have a server where players get a wanted level if they attack Cop players (or some specific class). In that case you might trust GiveDamage over TakeDamage.

There should be a lot you can do with it. You just have to keep in mind the levels of trust between clients. In most cases it's better to trust the client who is being damaged to report their health/armour (TakeDamage). SA-MP normally does this. GiveDamage provides some extra information which may be useful when you require a different level of trust.'

This section seems out of place and unnecessary to me. In my opinion, only the part of the reliability is REALLY important. Is it okay if I shorten it a bit so that it contains wiki-worthy info? Danny 22:11, 17 June 2014 (UTC)

Personal tools