public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
OnPlayerTakeDamage is called when a player takes damage and loses health.
playerid is the player who has taken damage. issuerid might be the player responsible for the damage. If the player has lost health as the result of a fall or collision, the issuerid will be INVALID_PLAYER_ID. The Float:amount contains the amount of health lost by the player from this damage event. weaponid contains the weapon type which might have caused the damage, similar to OnPlayerDeath.
Might help with Gryphus' rustler stats
Enzo I doubt that this new OnPlayerTakeDamage will work for that idea of mine, because it seems that it will work only for onfoot players and not for vehicles. However, this new addition still keeps opening many new possibilities, like for example if several players are shooting to me and I die, the kill could be given to the player who made the most damage to me, instead of to the one who just gave me the final hit. This could be useful against the typical kill stealers that, when you damage your victim to just 1hp, then appear and kill him with one single shot getting the kill for themselves. It also might be helpful to detect people with modified files to take less damage.
What I'm wondering is: has this new feature been added due to
this post, or were Samp developers already about to add it on their own initiative?