SA-MP Forums Archive
Random Anims - 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: Random Anims (/showthread.php?tid=109813)



Random Anims - patchkinson - 22.11.2009

Hello.
I really need help.
I Dont remember much bout scripting, i never was very good but i stopped for some time now i dont remember a lot.
I really need help to make the player, while in class selection, perform anims but a random one per skin, like while viewing a skin doesn an anim, when i view another one does other anim
a Rand Anim thing :-/
Thanks in advance!


Re: Random Anims - Luka P. - 22.11.2009

Try something like this

pawn Код:
switch(random(10))
{
    case 0: ApplyPlayerAnimation(bla bla);
    case 1: ApplyPlayerAnimation(bla bla);
    case 3: ApplyPlayerAnimation(bla bla);
    case 4: ApplyPlayerAnimation(bla bla);
}



Re: Random Anims - patchkinson - 22.11.2009

Didnt work :8 damnait, thanks though fget this!