Player death help
#10

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:
Код:
SpawnPlayer(playerid);
SetPlayerHealth(playerid, 100.0);
Setting the health is important, otherwise it will start doing some strange stuff.
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;
}
Reply


Messages In This Thread
Player death help - by HidroDF - 24.01.2017, 00:19
Re: Player death help - by LongQuad - 24.01.2017, 04:40
Re: Player death help - by GoldenLion - 24.01.2017, 05:07
Re: Player death help - by iLearner - 24.01.2017, 05:59
Respuesta: Re: Player death help - by HidroDF - 24.01.2017, 13:30
Re: Respuesta: Re: Player death help - by GoldenLion - 24.01.2017, 16:03
Respuesta: Re: Respuesta: Re: Player death help - by HidroDF - 24.01.2017, 16:15
Re: Player death help - by AndreiWow - 24.01.2017, 16:18
Respuesta: Player death help - by HidroDF - 24.01.2017, 16:22
Re: Player death help - by GoldenLion - 24.01.2017, 17:11

Forum Jump:


Users browsing this thread: 1 Guest(s)