SA-MP Forums Archive
I need a name of 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: I need a name of animation (/showthread.php?tid=270661)



I need a name of animation - System64 - 21.07.2011

Can anyone say me name of animation when player choking, when I spray him he will chok, so I need the name of that animation, thanks!


Re: I need a name of animation - System64 - 21.07.2011

bump

anyone?


Re: I need a name of animation - grand.Theft.Otto - 21.07.2011

Here:

pawn Код:
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
ApplyAnimation(playerid,"ped","gas_cwr",4.1,0,0,0,0,0,0);
I use it for /cry on my server.


Re: I need a name of animation - System64 - 21.07.2011

thank a lot man but how can I set duration of animation 5 minutes, tried setting last parameter to e.g.5000 but than animation doesn't work :S


Re: I need a name of animation - grand.Theft.Otto - 21.07.2011

https://sampwiki.blast.hk/wiki/ApplyAnimation

Try reading from that, it tells you each parameter and which one loops the anim non-stop.


Re: I need a name of animation - System64 - 21.07.2011

I put parameter opt5 on 5000 but anim doesn't work


Re: I need a name of animation - rjjj - 21.07.2011

Quote:
Originally Posted by System64
Посмотреть сообщение
thank a lot man but how can I set duration of animation 5 minutes, tried setting last parameter to e.g.5000 but than animation doesn't work :S
It should solve your problem .


I only changed the fifth parameter to 1, because it activates the function's loop :


pawn Код:
ApplyAnimation(playerid,"ped","gas_cwr",4.1,1,0,0,0,300000);//300000 miliseconds = 5 minutes

The code was tested, and it's working .


I hope that i have helped .