Teleport player to hospital after death
#5

Quote:
Originally Posted by CalvinC
Посмотреть сообщение
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
    }
}
Thanks a lot for your help
Reply


Messages In This Thread
Teleport player to hospital after death - by dimashr12345 - 02.04.2015, 18:34
Re: Teleport player to hospital after death - by Lordzy - 02.04.2015, 18:37
Re: Teleport player to hospital after death - by CalvinC - 02.04.2015, 18:40
Re: Teleport player to hospital after death - by dimashr12345 - 02.04.2015, 18:40
Re: Teleport player to hospital after death - by dimashr12345 - 02.04.2015, 18:43

Forum Jump:


Users browsing this thread: 4 Guest(s)