SendDeathMessage
From SA-MP Wiki
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.)
(killer, victim, reason)
| killer | The ID of the killer. |
| victim | The ID of the player that died. |
| reason | The 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.
- SendClientMessage: Send a message to a certain player.
- SendClientMessageToAll: Send a message to all players.
Related Callbacks
The following callbacks might be useful, as they're related to this function in one way or another.
- OnPlayerDeath: Called when a player dies.
