10.09.2013, 12:02
Remove this line:
Setting the skin when a player dies is pointless.
Set the skin in OnPlayerSpawn instead.
Plus, use:
on top of the OnPlayerDeath callback, not inside the if statement about the killerid. If a player dies by themselves, the icon won't be shown if the killerid is not valid.
pawn Код:
SetPlayerSkin(playerid, PInfo[playerid][Skin]);
Set the skin in OnPlayerSpawn instead.
Plus, use:
pawn Код:
SendDeathMessage(killerid, playerid, reason);