24.01.2017, 17:11
Oh, I see what you want now. What you need to do is spawn the player and set the player's health above 0.
Like this:
Setting the health is important, otherwise it will start doing some strange stuff.
Like this:
Like this:
Код:
SpawnPlayer(playerid); SetPlayerHealth(playerid, 100.0);
Like this:
Код:
public OnPlayerDeath(playerid, killerid, reason) { if (PlayerInfo[playerid][pDeath] == 0) { PlayerInfo[playerid][pDeath] = 1; Update(playerid, pDeathu); } else if (PlayerInfo[playerid][pDeath] == 1) { PlayerInfo[playerid][pDeath] = 2; Update(playerid, pDeathu); } SaveCoords(playerid); SpawnPlayer(playerid); SetPlayerHealth(playerid, 100.0); return 1; }