Player Death
#1

Hey, I am trying to do it so when a player health reaches 5, it freezes them and sets a animation. Which section in the code does this go under?

I got this so far
pawn Код:
/*Start*/
    new Float:health;
    PlayerInfo[playerid][pLocal] = 255;
    if(GetPlayerHealth(playerid, health) < 5)
    {
        SendClientMessage(playerid, COLOR_YELLOW, "Please Wait for an Ambulance");
        TogglePlayerControllable(playerid, 0);
        PlayerFrozen(playerid) = 1;
    }
    /*End*/
All this is under OnPlayerDeath which I guess is wrong.
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: 2 Guest(s)