Player respawn
#2

pawn Код:
new Death[MAX_PLAYERS]; // put this wherever, under #include or #define

public OnPlayerDeath(playerid, killerid, reason)
{
    Death[playerid] = 1; // set the variable to 1, which mean, player is dead.
    return 1;
}

public OnPlayerSpawn(playerid)
{
    if(Death[playerid] == 1) // check the player death status
    {
        //if player spawns because of death, do something
    }
    return 1;
}
Reply


Messages In This Thread
Player respawn - by cnoopers - 23.06.2014, 17:00
Re: Player respawn - by RenovanZ - 23.06.2014, 17:04
Re: Player respawn - by VenomMancer - 23.06.2014, 17:14
Re: Player respawn - by RenovanZ - 23.06.2014, 17:18

Forum Jump:


Users browsing this thread: 1 Guest(s)