What's wrong with my if statement?
#5

Remove this line:
pawn Код:
SetPlayerSkin(playerid, PInfo[playerid][Skin]);
Setting the skin when a player dies is pointless.

Set the skin in OnPlayerSpawn instead.

Plus, use:
pawn Код:
SendDeathMessage(killerid, playerid, reason);
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.
Reply


Messages In This Thread
What's wrong with my if statement? - by knackworst - 10.09.2013, 11:08
Re: What's wrong with my if statement? - by knackworst - 10.09.2013, 11:24
Re: What's wrong with my if statement? - by Konstantinos - 10.09.2013, 11:26
Re: What's wrong with my if statement? - by knackworst - 10.09.2013, 11:37
Re: What's wrong with my if statement? - by Konstantinos - 10.09.2013, 12:02

Forum Jump:


Users browsing this thread: 1 Guest(s)