Applying 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: Applying animation on NPC. (
/showthread.php?tid=447381)
Applying 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.
Re: Applying animation on NPC. -
Firewire - 29.06.2013
https://sampforum.blast.hk/showthread.php?tid=135986
Please take a look at this as it'll help you through the problem you're experiencing.
- Firewire
Re: Applying animation on NPC. -
BaubaS - 29.06.2013
Thank you.
Re: Applying animation on NPC. -
BaubaS - 29.06.2013
Had to double post anyway. As Im using custom processor, a strcmp check in OnPlayerCommandText will fuck up all the commands. So I ask, how to make it work, for example with zcmd commands' proccessor? Tried to use CallLocalFunction, says undefined symbol. Include main samp include - more warnings/errors, so I guess its a shitty way.