09.10.2012, 12:41
Well it's because the SendDeathMessage is used twice, so the thing you can do is create a variable at the top of the script like:
At the command /akill you set this ABOVE the setplayerhealth(playerid,0.0);
At onplayerdeath:
pawn Код:
new Akilled[MAX_PLAYERS];
pawn Код:
Akilled[targeid] = 1;
pawn Код:
if(Akilled[playerid] != 1)
{
SendDeathMessage(killerid, playerid, reason);
}
Akilled[playerid] = 0;