07.12.2012, 17:43
Hi, I think that more or less I know a bit of what the difference between these two callbacks is, and generally I tend to use OnPlayerTakeDamage in my scripts rather than the other callback. However, my doubt comes because I don't know if there are any particular situations in which OnPlayerGiveDamage is called while OnPlayerTakeDamage is not. For example I don't know if OnPlayerGiveDamage may be called when shooting a player of your own team (while team damage is disabled), or when you shoot to another player without lag-aiming (I mean when you see that green marker over him, but he's not actually receiving your shots).
I have read the wiki article: https://sampwiki.blast.hk/wiki/OnPlayerGiveDamage which gives some tips about this, but still I don't have it fully clear.
I have read the wiki article: https://sampwiki.blast.hk/wiki/OnPlayerGiveDamage which gives some tips about this, but still I don't have it fully clear.