Help with creating checkpoint when player dies
#2

Depending on what you're using to track if the player is a dead body transporter and if they're on duty you'll have to change 'DeadBodyTransporter' and 'OnDuty' to suit your needs.

OnPlayerDeath:

pawn Код:
new Float:DeathX, Float:DeathY, Float:DeathZ;
GetPlayerPos(playerid,DeathX,DeathY,DeathZ);
for (new i= 0; i< MAX_PLAYERS; i++)
{
    if(DeadBodyTransporter[i] == 1 && OnDuty[i] == 1)
    {
        SetPlayerCheckpoint(i,DeathX,DeathY,DeathZ,4.0)
    }
}
Reply


Messages In This Thread
Help with creating checkpoint when player dies - by csoki2 - 18.04.2011, 16:39
Re: Help with creating checkpoint when player dies - by Joyner - 18.04.2011, 17:13
Re: Help with creating checkpoint when player dies - by csoki2 - 18.04.2011, 19:08

Forum Jump:


Users browsing this thread: 1 Guest(s)