No, I don't have any animation set in mind, just hoping someone might know of an animation that would work for it.
I've found a temporary solution, however.. I want the animation to stop automaticly without the player having to click or press F..
I'm trying to use ClearAnimation but that doesn't work as the player still has to do something to be able to move again. The only solution I made up, which works, is slapping the player by Z + 1, however this doesn't look very good, so I'd rather settle with a better solution if there is one possible.
pawn Код:
ApplyAnimation(playerid, "ON_LOOKERS", "panic_loop", 4.1, 1, 0, 0, 1, 4950, 1);
SendClientMessage(playerid, COLOR_DARKCYAN, "You carefully use bandages on your wounds.");
SetTimerEx("Healing", 5050, false, "i", playerid);
This is the part where it starts the animation and sets a timer to apply the heal and end the animation.
Here is the timer:
pawn Код:
SetPlayerHealth(playerid, NewHealth + 20);
SendClientMessage(playerid, COLOR_GREEN, "You have succesfully healed yourself!");
ClearAnimations(playerid, 1);