28.11.2014, 14:53
How can I stop looping the animation on OnPlayerUpdate(playerid). Animation repeat constantly...
Код:
new Float:Health;
GetPlayerHealth(playerid, Health);
if (Health <= 20.0)
{
LOWHP[playerid] = 0;
if(LOWHP[playerid] == 0)
{
ApplyAnimation(playerid, "KNIFE", "KILL_Knife_Ped_Die",9.1,0,1,1,1,1);
LOWHP[playerid] = 1;
return 1;
}
if(LOWHP[playerid] == 1)
{
return 1;
}
}


