10.09.2013, 11:37
Yeah I had a look at the wiki for OnPlayerDeath, and saw that I've been using killerid wrong, -> that caused the bug.
However, when I die now I get frozen and my skin gets reset?
?
However, when I die now I get frozen and my skin gets reset?
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
PInfo[killerid][Kills] ++;
SendDeathMessage(killerid, playerid, reason);
}
SetPlayerSkin(playerid, PInfo[playerid][Skin]);
PInfo[playerid][Deaths] ++;
if(PInfo[playerid][VortexJump] == 1) LeaveVortexGame(playerid);
if(PInfo[playerid][CaveGame] == 1) LeaveCaveGame(playerid);
if(PInfo[playerid][Racing] != -1) LeaveRace(playerid, PInfo[playerid][Racing]);
return 1;
}