22.09.2018, 17:16
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
if(!IsPlayerNPC(playerid))
{
new name[24], kname[30], string[64];
GetPlayerName(playerid, name, 24);
GetPlayerName(killerid, kname, 30);
format(string, sizeof(string), "%s has been killed by %s with weapon: %s", name,kname,reason);
SendMessageToAllAdmins(string, -1);