Question about animations - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Question about animations (
/showthread.php?tid=68315)
Question about animations -
cyber_punk - 09.03.2009
(F.Y.I I searched.....)
I have a question about animations, from what I have messed around with I decided to ask the experts (cuz so far it doesn't seem possible), but what I wanted to do was to Apply one animation after another (in a /command), no matter what I try it just applys one of the animations so my question is, Is it possible to string together animations? (one animation plays out then immediately another animation picks up)
Re: Question about animations -
thuron - 10.03.2009
i think you have to do it like this then:
Код:
if (strcmp("/anim", cmdtext, true) == 0)
{
if(gFreeze[playerid] == 0)
{
OnePlayAnim(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
gLoopingAnim[playerid] = 1;
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
return 1;
}
SetTimer("message",1000,false);
{
if(gFreeze[playerid] == 0)
{
OnePlayAnim(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
gLoopingAnim[playerid] = 1;
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
return 1;
}
}
}
I dont know if it works.I just did it from scratch, I hope for you it works