27.08.2015, 22:18
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; }