Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

OnPlayerTakeDamage dude [help]

$
0
0
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);
}


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>