This Function was added in SA-MP 0.3z R2-2 and will not work in earlier versions!
Adds a death to the 'killfeed' on the right-hand side of the screen for a single player.
|playerid||The ID of the player to send the death message to.|
|killer||The ID of the killer (can be INVALID_PLAYER_ID).|
|killee||The ID of the player that died.|
|weapon||The reason (not always a weapon) for the victim's death. Special icons can also be used (ICON_CONNECT and ICON_DISCONNECT).|
1: The function was executed successfully.
0: The function failed to execute.
public OnPlayerDeath(playerid, killerid, reason)
// Sends a death message to "playerid" shows that "killerid" killed "playerid" for "reason"
SendDeathMessageToPlayer(playerid, killerid, playerid, reason);