Quote:
|
Originally Posted by Gappy
pawn Код:
forward Health();
public OnFilterScriptInit() { SetTimer("Health", 1000, 1); return 1; }
public Health() { for(new i; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { new Float:health; GetPlayerHealth(i, health); if(health < 40) { ApplyAnimation(i, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); SendClientMessage(i, COLOR_RED, "You have been wounded, you need a paramedic !"); } } } return 1; }
Try that.
|
It complies fine, but when I get down to 40 HP it doesn't do Animation