[Ajuda] Morrer em Gangzone
#2

Vocк pode fazer assim:

Код:
new bool:PlayerDM[MAX_PLAYERS]; //no topo

public OnPlayerDeath(playerid, killerid, reason)
{
    if (IsPlayerInRangeOfPoint(playerid, range, X, Y, Z)){PlayerDM[playerid] = true;}
    return 1;
}

public OnPlayerSpawn(playerid)
{
	if(PlayerDM[playerid] == true)
	{
        new Random = random(sizeof(RandomSpawns));
        SetPlayerInterior(playerid, 0);
		SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1],RandomSpawns[Random][2]);
        SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
        PlayerDM[playerid] = false;
	}
	return 1;
}
Reply


Messages In This Thread
Morrer em Gangzone - by BartWhite - 27.08.2015, 22:02
Re: Morrer em Gangzone - by iTakelot - 27.08.2015, 22:18
Respuesta: Morrer em Gangzone - by BartWhite - 27.08.2015, 22:28
Re: Morrer em Gangzone - by iTakelot - 27.08.2015, 22:29
Respuesta: Morrer em Gangzone - by BartWhite - 27.08.2015, 22:39

Forum Jump:


Users browsing this thread: 1 Guest(s)