SendDeathMessage

From SA-MP Wiki

Jump to: navigation, search
Adds a death to the 'killfeed' on the right-hand side of the screen. See image below.


Image:Killfeed.png


Parameters:
(killer, killee, weapon)
killerThe ID of the killer (can be INVALID_PLAYER_ID).
killeeThe ID of the player that died.
weaponThe reason (not always a weapon) for the victim's death. Special icons can also be used (ICON_CONNECT and ICON_DISCONNECT).


ReturnsThis function doesn't return a specific value


public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(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 they're related to this function in one way or another.

Personal tools