SA-MP Forums Archive
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: Animation (/showthread.php?tid=277448)



Animation - undeR. - 18.08.2011

I made some npc which are doing some animations, so the problem is that i cant see that anim, but when i port to ls, do some anim, and go back to NPC, NPC is doing anim...

So, my problem is, how to make that when player connect to show anim without doing anims?


Re: Animation - =WoR=Varth - 18.08.2011

Do you force sync your NPC anim?
or
pawn Код:
public OnPlayerSpawn(playerid)
{
    PreloadAnimLib(playerid,"BOMBER");
    PreloadAnimLib(playerid,"RAPPING");
    PreloadAnimLib(playerid,"SHOP");
    PreloadAnimLib(playerid,"BEACH");
    PreloadAnimLib(playerid,"SMOKING");
    PreloadAnimLib(playerid,"FOOD");
    PreloadAnimLib(playerid,"ON_LOOKERS");
    PreloadAnimLib(playerid,"DEALER");
    PreloadAnimLib(playerid,"CRACK");
    PreloadAnimLib(playerid,"CARRY");
    PreloadAnimLib(playerid,"COP_AMBIENT");
    PreloadAnimLib(playerid,"PARK");
    PreloadAnimLib(playerid,"INT_HOUSE");
    PreloadAnimLib(playerid,"FOOD" );
    return 1;
}

stock PreloadAnimLib(playerid,animlib[]) return ApplyAnimation(playerid,animlib,"null",0,0,0,0,0,1);