11.01.2012, 12:05
Get the co-ordinates of where you want to spawn the player using /save in game. Then, we need to set a player variable under OnPlayerDeath, this can be done by:
Now, under OnPlayerSpawn, we need to check if the player was dead before he spawned. We can do this by:
pawn Код:
SetPVarInt(playerid, "Dead", 1);
pawn Код:
if(GetPVarInt(playerid, "Dead")) {
SetPlayerPos(playerid, fX, fY, fZ); // Position of the hospital.
DeletePVar(playerid, "Dead");
}