How to Check After Animation - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to Check After Animation (
/showthread.php?tid=610901)
How to Check After Animation -
tandytanz - 30.06.2016
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?
Re: How to Check After Animation -
Raza99 - 30.06.2016
This will help you i think,
https://sampwiki.blast.hk/wiki/GetPlayerAnimationIndex
Re: How to Check After Animation -
CalvinC - 30.06.2016
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.