[HELP] - OnPlayerDeath [+rep]
#3

This is how my OnPlayerSpawn looks

Код:
public OnPlayerSpawn(playerid)
{
	if(Died[playerid]==1)
	{
	    Died[playerid]=0;
		if(IsPlayerInRangeOfPoint(playerid,2500,2034.6943,-1406.8729,17.1975))
		{
		    SetPlayerPos(playerid,2034.6943,-1406.8729,17.1975);
		}
		if(IsPlayerInRangeOfPoint(playerid,2500,1578.3215,1768.5914,10.8203))
		{
		    SetPlayerPos(playerid,1578.3215,1768.5914,10.8203);
		}
		if(IsPlayerInRangeOfPoint(playerid,2500,-2648.6311,635.9958,14.4531))
		{
		    SetPlayerPos(playerid,-2648.6311,635.9958,14.4531);
		}
        if(!IsPlayerInRangeOfPoint(playerid,2500,-2648.6311,635.9958,14.4531)&&!IsPlayerInRangeOfPoint(playerid,2500,1578.3215,1768.5914,10.8203)&&!IsPlayerInRangeOfPoint(playerid,2500,2034.6943,-1406.8729,17.1975))
		{
		    SetPlayerPos(playerid,1177.9857,-1323.0596,14.0977);
		}
    }
But still, i freeze and im not spawning at the Hospital, any suggestions?
Reply


Messages In This Thread
[HELP] - OnPlayerDeath [+rep] - by Escobabe - 08.09.2017, 16:33
Re: [HELP] - OnPlayerDeath [+rep] - by Primes007 - 08.09.2017, 16:42
Re: [HELP] - OnPlayerDeath [+rep] - by Escobabe - 08.09.2017, 17:09
Re: [HELP] - OnPlayerDeath [+rep] - by Escobabe - 08.09.2017, 17:32
Re: [HELP] - OnPlayerDeath [+rep] - by SetPlayerNameTag - 09.09.2017, 02:56
Re: [HELP] - OnPlayerDeath [+rep] - by Kane - 09.09.2017, 03:01
Re: [HELP] - OnPlayerDeath [+rep] - by Escobabe - 09.09.2017, 07:36

Forum Jump:


Users browsing this thread: 1 Guest(s)