Why does not it work? I want that when a player has 1 life he falls to the ground executing the animation I established and then goes to the Timer that will kill him in 60 seconds but none of this happens, the person is not hurt and does not happen to the Timer
Code:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid,bodypart)
{
new Float:health;
GetPlayerHealth(playerid,health);
if (health < 5)
{
ApplyAnimation(playerid, "PED", "KO_shot_front", 4.1, 1, 1, 1, 1, 1, 1);
revive_timer[playerid] = SetTimerEx("Injured", 30000, false, "i", playerid);
}