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



Animation on NPC. - BaubaS - 29.06.2013

Good day. I have a problem - Somewhy animation on NPC doesnt work. Anyone haves a solution? Server sets the skin without any problem btw

I have this in OnPlayerSpawn callback:

pawn Code:
ApplyAnimation(playerid, "DANCING", "null", 0.0, 0, 0, 0, 0, 0);
if (!strcmp(userName, "Sokejas3", true))
{
    ApplyAnimation(playerid, "DANCING", "DAN_Left_A", 4.1, 1, 1, 1, 1, 0, 1);
    SetPlayerSkin(playerid, 60);
}
Thanks in advance.