Player Death
#6

Quote:
Originally Posted by SilentHuntR
Yeah but without a toggle variable it will spam that. I suggest using a looping animation like Sweet's injury, that way the player doesn't become invincible. Also make sure to kick the player out of any vehicle he/she may be in.
pawn Код:
public OnPlayerUpdate(playerid)
{
    if(IsPlayerConnected(playerid))
    {
    new Float:health;
        if(GetPlayerHealth(playerid, health) < 5)
        {
//          PlayerInfo[playerid][pLocal] = 255;
            SendClientMessage(playerid, COLOR_YELLOW, "Please Wait for an Ambulance");
            TogglePlayerControllable(playerid, 0);
            return 1;
        }
    return 1;
    }
return 1;
}
What do I have to do now to add the varibels and for it to remove the player from the car?
Reply


Messages In This Thread
Player Death - by acade - 17.02.2009, 15:16
Re: Player Death - by Joe Staff - 17.02.2009, 15:18
Re: Player Death - by acade - 17.02.2009, 15:22
Re: Player Death - by Joe Staff - 17.02.2009, 15:27
Re: Player Death - by acade - 17.02.2009, 16:05
Re: Player Death - by acade - 17.02.2009, 18:05
Re: Player Death - by acade - 20.02.2009, 15:35
Re: Player Death - by Jefff - 20.02.2009, 17:29
Re: Player Death - by acade - 20.02.2009, 21:25

Forum Jump:


Users browsing this thread: 3 Guest(s)