public OnPlayerUpdate(playerid){if(GetPlayerHealth(playerid) < 20) { ApplyAnimation(playerid, \"CRACK\", \"crckdeth2\", 4.0, 1, 0, 0, 0, 0); return 1;}return 1;}
public OnPlayerUpdate(playerid){if(GetPlayerHealth(playerid) < 20 && GetPlayerState(playerid) != PLAYER_STATE_WASTED){ ApplyAnimation(playerid, \"CRACK\", \"crckdeth2\", 4.0, 1, 0, 0, 0, 0);}return 1;}
#include <a_samp>new mokus[MAX_PLAYERS];forward Ellenorzo(playerid);public OnPlayerDisconnect(playerid, reason){KillTimer(mokus[playerid]);return 1;}public OnPlayerSpawn(playerid){mokus[playerid] = SetTimerEx(\"Ellenorzo\", 3000, true, \"i\", playerid);return 1;}public Ellenorzo(playerid){if(GetPlayerHealth(playerid) < 20 && GetPlayerState(playerid) != PLAYER_STATE_WASTED){ApplyAnimation(playerid, \"CRACK\", \"crckdeth2\", 4.0, 1, 0, 0, 0, 0);}}
public Ellenorzo(playerid){ if(GetPlayerHealth(playerid) < 20 && GetPlayerState(playerid) != PLAYER_STATE_WASTED) { ApplyAnimation(playerid, \"CRACK\", \"crckdeth2\", 4.0, 1, 0, 0, 0, 0); } return 1;}
OnPlayerHealthChange
new Float:hp;GetPlayerHealth(playerid,hp);if(hp < 20 && GetPlayerState(playerid) != PLAYER_STATE_WASTED){ ApplyAnimation(playerid, \"CRACK\", \"crckdeth2\", 4.0, 1, 0, 0, 0, 0);}