02.04.2015, 18:40
Do it in OnPlayerSpawn, here's an example:
pawn Код:
new bool:HospitalSpawn[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason)
{
HospitalSpawn[playerid] = true;
}
public OnPlayerSpawn(playerid)
{
if(HospitalSpawn[playerid])
{
HospitalSpawn[playerid] = false;
SetPlayerPos(playerid, x, y, z);
}
else
{
// Your other SetPlayerPos code
}
}