Animation not showing for other players - 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: Animation not showing for other players (
/showthread.php?tid=603674)
Animation not showing for other players -
Amads - 26.03.2016
Hello.
As you can guess I have a problem - only the player that the animation is executed on can actually see the animation happening. Other players don't see it, to them the player is standing still the whole time.
It happens only when using 'Time' parameter
Here's the code:
Code:
ApplyAnimation(playerid,"BOMBER","BOM_Plant",4.1,0,1,1,0,1900,1);
I tried changing foresync but to no effect.
Yes, I apply the animation before it is played, on OnPlayerRequestSpawn:
Code:
ApplyAnimation(playerid,"BOMBER","BOM_Plant",0,0,1,1,0,0,0);
Re: Animation not showing for other players -
Amads - 27.03.2016
bump
Re: Animation not showing for other players -
Sew_Sumi - 27.03.2016
In OnPlayerConnect
Code:
PreloadAnimLib(playerid, animlib[])
BOMBER is the animlib for this one.
Re: Animation not showing for other players -
2k16 - 27.03.2016
HTML Code:
PreloadAnimLib(playerid, animlib[]) return ApplyAnimation(playerid, animlib, "null", 0.0, 0, 0, 0, 0, 0);
PreloadAnimLib(playerid, animlib[]);
Example:
PreloadAnimLib(playerid, "BOMBER");
You can put the code on OnPlayerConnect or OnPlayerSpawn.