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



Animations Problem - PoniStar - 02.02.2019

Hi guys , i have a problem, when i set a animation to player some times it will not work , i think it will not work on walk i mean if you walking and animation set , some times it will not work on player and player skin is normal , for exp i want to Bomber anim set if player push N botton , but if he push N on walk this will not work !

here is my code for animations:
Код:
 	ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.1, 0, 0, 0, 0, 0, 1);



Re: Animations Problem - ReshiramZekrom - 02.02.2019

You need to preload that animation when the player spawns otherwise he must play the animation twice to see some real effects. For doing that you can just put that line under OnPlayerSpawn


Re: Animations Problem - PoniStar - 05.02.2019

Um, srry i'am a little bad in english , can you show me with some codes? What should i put on player spawn?


Re: Animations Problem - Proxus - 05.02.2019

Quote:
Originally Posted by PoniStar
Посмотреть сообщение
Um, srry i'am a little bad in english , can you show me with some codes? What should i put on player spawn?
In your Pawn (.pwn) file, you should be able to see something like:
Код:
public OnPlayerSpawn(playerid);
However, if I'm right about what you want, you'll be needing OnPlayerRequestClass instead.


Re: Animations Problem - TheToretto - 05.02.2019

Код:
ApplyAnimation(playerid, "BOMBER", "null", 0.0, 0, 0, 0, 0, 0, 0);
Inside OnPlayerSpawn in order to preload the animation.


Re: Animations Problem - PoniStar - 06.02.2019

thnx problem fixed