11.06.2013, 06:35
Hello,
When I died in game it spawn me on my position or in blueberry and show me
OnPlayerDeath
When I died in game it spawn me on my position or in blueberry and show me
Код:
[debug] Player died 255 // this is showing around 20 times and them my game crash
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SetProgressBarValue(hungry[playerid], 100);
SetSpawnInfo(playerid, -1, PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pPositionX], PlayerInfo[playerid][pPositionY], PlayerInfo[playerid][pPositionZ], PlayerInfo[playerid][pAngle], -1, -1, -1, -1, -1, -1);
SpawnPlayer(playerid);
return 1;
}