Quote:
Originally Posted by SuperViper
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) { new Message[128];
[B] if(killerid == INVALID_PLAYER_ID)[/B] { format(Message, 128, "{FFAF00}%s {B8FF02}has {F81414}died", PlayerName(playerid), reason); } else { format(Message, 128, "{FFAF00}%s {B8FF02}has {F81414}killed {FFAF00}%s", PlayerName(killerid), PlayerName(playerid)); }
SendClientMessageToAll(COLOR_RED, Message); return 1; }
When a player suicides, it doesn't show that they killed themselves. It shows that nobody (INVALID_PLAYER_ID) killed them.
|
That's because of killerid should equal player id
Код:
if(killerid == playerid)
As shown in the posts above.