SA-MP Forums Archive
Only one player sees 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: Only one player sees animation (/showthread.php?tid=469545)



Only one player sees animation - dominik523 - 13.10.2013

Hello! I have little problem. I have /shakehand command, and when two players try to use it, player 1 only sees his animation and second player sees his command. I have preloaded anim libs, and I tried to put force sync to 1 in ApplyAnimation but it won't work. Here is my code:
pawn Код:
ApplyAnimation(playerid,"GANGS","hndshkaa",4.0,1,1,1,0,1000,1);
           ApplyAnimation(PendingHandshake[playerid],"GANGS","hndshkaa",4.0,1,1,1,0,1000,1);
Does anyone know why players see only their animations?


Re: Only one player sees animation - Pottus - 13.10.2013

You need to preload the animation libraries before performing animations.


Re: Only one player sees animation - dominik523 - 13.10.2013

I got this under onplayerspawn:
pawn Код:
stock PreloadAnimLib(playerid, animlib[])
{
    ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
}
stock PreloadAllAnimLibs(playerid)
{
    PreloadAnimLib(playerid,"BEACH");
    PreloadAnimLib(playerid,"FAT");
    PreloadAnimLib(playerid,"ped");
... all anim libraries I need
}



Re: Only one player sees animation - Pottus - 13.10.2013

You should be good then.


Re: Only one player sees animation - dominik523 - 13.10.2013

well there is some other problem with only some animations, and I have no idea what to do


Re: Only one player sees animation - Pottus - 13.10.2013

Most likely your parameters need adjusting.