SendDeathMessageToPlayer

SendDeathMessageToPlayer

Description:
Function SendDeathMessageToPlayer adds a death to the 'killfeed' on the right-hand side of the screen for a single player.
Function SendDeathMessageToPlayer was added in 0.3z R2-2 and will not work in earlier versions!


Parameters:
(playerid, killer, killee, weapon)
int playerid The ID of the player to send the death message to.
int killer The ID of the killer (can be INVALID_PLAYER_ID).
int killee The ID of the player that died.
int weapon The reason (not always a weapon) for the victim's death. Special icons can also be used (ICON_CONNECT and ICON_DISCONNECT).


Return Values:
  • 1: The function was executed successfully.
  • 0: The function failed to execute.


Examples:
public OnPlayerDeath(playerid, killerid, reason)
{
    // Sends a death message to "playerid" shows that "killerid" killed "playerid" for "reason"
    SendDeathMessageToPlayer(playerid, killerid, playerid, reason);
 
    return 1;
}


Related Functions
The following functions may be useful, as they are related to this function in one way or another.


Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.