Animations
#1

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

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

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

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

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

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

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

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 ? ...
Reply
#9

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)