02.09.2009, 18:24
At wiki, i see this code for NPC:OnPlayerDeath:
And SendChat works only for bots.
pawn Код:
public OnPlayerDeath(playerid)
{
new string[80], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Oh no %s! I didn't want you to die that way!", name);
SendChat(string);
return 1;
}

