17.02.2009, 15:16
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
All this is under OnPlayerDeath which I guess is wrong.
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*/