#4

pawn Код:
new bool:JustDied[MAX_PLAYERS]=false;
public OnPlayerSpawn(playerid)
{
    if(JustDied[playerid] == true)
    {
        new Float:Hosp1 = GetPlayerDistanceFromPoint(playerid, X, Y, Z),
            Float:Hosp2 = GetPlayerDistanceFromPoint(playerid, X, Y, Z);
        if(Hosp1 > Hosp2)
        {
            //set their pos to hosp 2
        }
        else
        {
            //set their pos to hosp 1
        }
        JustDied[playerid] = false;
    }
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    JustDied[playerid] = true;
    return 1;
}
Is a much simpler method instead of randomizing it
Reply


Messages In This Thread
HELP - by DoVaH - 22.02.2012, 14:13
Re: HELP - by niels44 - 22.02.2012, 14:29
Re: HELP - by DoVaH - 22.02.2012, 18:05
Re: HELP - by [ABK]Antonio - 22.02.2012, 18:12
Re: HELP - by DoVaH - 22.02.2012, 18:38
Re: HELP - by [ABK]Antonio - 22.02.2012, 18:48

Forum Jump:


Users browsing this thread: 2 Guest(s)