28.10.2012, 18:20
Guyz i need help when i use /kill cmd it shows the wrong message from OnPlayerDeath
any help please
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new Message[128];
if(killerid == playerid) {
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;
}