16.02.2015, 15:33
pawn Код:
if(LoggedIn[playerid] == 1 && GetPlayerHealth(playerid, health) <= 40 && KnockedOut[playerid] == 0)
{
KnockedOut[playerid] = 1;
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0,1);
TextDrawShowForPlayer(playerid,BFText);
new string[128];
format(string, sizeof(string), "* %s has lost consciousness due to their injuries *", GetNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOUR_PURPLE, COLOUR_PURPLE, COLOUR_PURPLE, COLOUR_PURPLE, COLOUR_PURPLE);
}
Thanks.