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



Animations - Geekzor - 18.07.2009

hy guys i need help as allways

now i need animations , how to do this like: Dance,sit,sleep etc but i perfer animation when player pickup ''arrmor'' he do animations like ''pickup''

u can understand me better if i talk for ''real life'' , when you pick up something in real life , i want to have this animation in my sa-mp server

i hope u understand me

ty


Re: Animations - Sergei - 18.07.2009

It's simple. First find right animations which you want.

Then for example for armour picking just put that animation with ApplyAnimation in OnPlayerPickUpPickup.

It's also useful if you preload animations, so you won't need to apply it two types. You can get useful examples in 'vactions' which you get with default server package.


Re: Animations - Geekzor - 18.07.2009

Quote:
Originally Posted by Sergiy
It's simple. First find right animations which you want.

Then for example for armour picking just put that animation with ApplyAnimation in OnPlayerPickUpPickup.

It's also useful if you preload animations, so you won't need to apply it two types. You can get useful examples in 'vactions' which you get with default server package.
ty for replaying but is here any direct link for animations ?

i go check wiki now


Re: Animations - refshal - 18.07.2009

Quote:
Originally Posted by Geekzor
is here any direct link for animations ?
https://sampwiki.blast.hk/wiki/Animations


Re: Animations - Geekzor - 18.07.2009

ye eddy atm i am searching here but problem is i dont find animation that i want ''pickup'' animation


Re: Animations - Geekzor - 18.07.2009

sry for dubble post

ok i found my animation

Code:
if (pickupid == money15)
  {
		GivePlayerMoney(playerid,10000);
    SendClientMessage(playerid,0x33CCFFAA,"You Found $10.000");
    ApplyAnimation(playerid,"MISC","pickup_box",4.1,1,1,1,1,1);
	}
but when i pickup money pocket it dont make animation

any help ?


Re: Animations - Sergei - 18.07.2009

Applyanimation two times:
pawn Code:
if (pickupid == money15)
  {
        GivePlayerMoney(playerid,10000);
    SendClientMessage(playerid,0x33CCFFAA,"You Found $10.000");
    ApplyAnimation(playerid,"MISC","pickup_box",4.1,1,1,1,1,1);
ApplyAnimation(playerid,"MISC","pickup_box",4.1,1,1,1,1,1);
    }
Or even better is if oyu preload animation library. For example look in vactions.pwn and copy from there


Re: Animations - Geekzor - 18.07.2009

Quote:
Originally Posted by Sergiy
Applyanimation two times:
pawn Code:
if (pickupid == money15)
  {
        GivePlayerMoney(playerid,10000);
    SendClientMessage(playerid,0x33CCFFAA,"You Found $10.000");
    ApplyAnimation(playerid,"MISC","pickup_box",4.1,1,1,1,1,1);
ApplyAnimation(playerid,"MISC","pickup_box",4.1,1,1,1,1,1);
    }
Or even better is if oyu preload animation library. For example look in vactions.pwn and copy from there
ok i will check but can u tell me atm i fix a little but the problem is : when i pickup my money pocket my character making this animation repetly- or what ever it is in english it dont stop, but i want he do this animation just once ...

EDIT: btw can u tech me what mean preload libary or something like this is this pawno language or ? ...


Re: Animations - Sergei - 18.07.2009

Code:
ApplyAnimation(playerid,"MISC","pickup_box",4.1,0,1,1,1,1);
Try this. Play with numbers after 4.1 a bit. You can check what they mean here: https://sampwiki.blast.hk/wiki/ApplyAnimation

And as I said check in vactions.pwn for preload.


Re: Animations - Geekzor - 18.07.2009

Quote:
Originally Posted by Sergiy
Code:
ApplyAnimation(playerid,"MISC","pickup_box",4.1,0,1,1,1,1);
Try this. Play with numbers after 4.1 a bit. You can check what they mean here: https://sampwiki.blast.hk/wiki/ApplyAnimation

And as I said check in vactions.pwn for preload.
i was changing this numbers like crazy and the speed is same as before ... can u make this ?

make speed slow
and make the character make this animation just once

please