Applying animation on NPC.
#1

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.
Reply
#2

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
Reply
#3

Thank you.
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)