SendDeathMessage

From SA-MP Wiki

Jump to: navigation, search

SendDeathMessage

This function can be used to add kills to the deathlist. (That's the thing you see at the middle-right of the screen with the killer's name, then an icon representing the weapon used, then the victim's name.)


Parameters:
(killer, victim, reason)
killerThe ID of the killer.
victimThe ID of the player that died.
reasonThe reason why the victim died, you can also use special icons ICON_CONNECT and ICON_DISCONNECT.


This function does not return a specific value.


public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid, playerid, reason);
    return 1;
}

Related Functions

The following functions might be useful as well, as they're 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
In other languages