Spawn on death
#3

You can use this to spawn players somewhere after death. However, you need to make sure ForceClassSelection() isn't being called in either callback.

pawn Код:
new Dead[MAX_PLAYERS];

public OnPlayerDeath(playerid)
{
    Dead[playerid] = 1;
    return 1;
}

public OnPlayerSpawn(playerid)
{
    if(Dead[playerid] == 1)
    {
        SetPlayerPos(playerid, x, y, z);
        Dead[playerid] = 0;
    }
    return 1;
}
Reply


Messages In This Thread
Spawn on death - by Fjclip99 - 18.10.2014, 16:01
Re: Spawn on death - by RockyGamer - 18.10.2014, 16:06
Re: Spawn on death - by austin070 - 18.10.2014, 16:15
Re: Spawn on death - by 0x41726d79 - 18.10.2014, 16:23

Forum Jump:


Users browsing this thread: 2 Guest(s)