SA-MP Forums Archive
Problem with 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem with Animation (/showthread.php?tid=273610)



Problem with Animation - kamilot73 - 02.08.2011

Good to know why den.Hotel animation on my server only runs only after I run this animation before.for example I type

Код:
ApplyAnimation (playerid, "BOMBER", "BOM_Plant", 2.1,0,0,0,0,3600);
then neither of which does not happen and if this function is triggered with no time - all the same worked.And why some animation work only on a certain player and others do not see that it animates. Please clarify


Re: Problem with Animation - kamilot73 - 02.08.2011

I heard that need load lib of anim when player spaw how to do it?


Re: Problem with Animation - Stylock - 02.08.2011

Pre-load animation.
Код:
public OnPlayerSpawn(playerid)
{
    ApplyAnimation(playerid, "BOMBER", "null", 0.0, 0, 0, 0, 0, 0);
    return 1;
}
ApplyAnimation has one optional parameter. Set it to 1 to force playerid to sync animation with other players.
Код:
ApplyAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync)
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 2.1, 0, 0, 0, 0, 3600, 1);



Re: Problem with Animation - kamilot73 - 02.08.2011

Thx your man)

FIX