How to Check After Animation
#1

So i what i want to do is checking if someone has done the animation so i can apply more animation without weird moves... is that possible? if that possible how can we do that?
Reply
#2

This will help you i think, https://sampwiki.blast.hk/wiki/GetPlayerAnimationIndex
Reply
#3

This is what i do:
Код:
new
    animlib[32],
    animname[32]
;
GetAnimationName(GetPlayerAnimationIndex(playerid), animlib, sizeof(animlib), animname, sizeof(animname));

if(!strcmp(animlib, "SUNBATHE", true))
{
    if(!strcmp(animname, "batherdown", true))
        ApplyAnimation(playerid, "SUNBATHE", "batherup", 4.1, 0, 0, 0, 0, 0, 1);
}
If he has the animation "SUNBATHE", "batherdown", then it will apply the "batherup" here, which you could use in /stopanim or where-ever you want it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)