[Question] GetPlayerAnimationIndex
#1

In NGG game mode, there're two line in script, it's when player dead, they will apply this animation (Kill Knife Ped Die).
PHP код:
if(GetPlayerAnimationIndex(i) != 746ClearAnimations(i), ApplyAnimation(i"KNIFE""KILL_Knife_Ped_Die"4.0011101); 
I want to change animation when died, I know applyanimation means, But I don't know how to get the number of the Animation in GetPlayerAnimationIndex. Please help me, thank you !!
Reply
#2

Really? You're going to use the NGG gamemode?

https://sampwiki.blast.hk/wiki/Animations
https://sampwiki.blast.hk/wiki/GetPlayerAnimationIndex
https://sampwiki.blast.hk/wiki/GetAnimationName
Reply
#3

https://sampwiki.blast.hk/wiki/GetPlayerAnimationIndex
https://sampwiki.blast.hk/wiki/Animations
Reply
#4

I can't find ID of Animation (like 746 for animation "Knife ped die" in my question) in this page: https://sampwiki.blast.hk/wiki/Animations
I have try the code in this page https://sampwiki.blast.hk/wiki/GetPlayerAnimationIndex. But it just send message The Name of the animation, not the ID like 746 in my question.
My question is how to get the number of animation. But thank for reply !
Reply
#5

Tell me, what do u need the god damn id for?
Reply
#6

Quote:
Originally Posted by [Bios]Marcel
Посмотреть сообщение
Tell me, what do u need the god damn id for?
PHP код:
if(GetPlayerAnimationIndex(i) != 746ClearAnimations(i), ApplyAnimation(i"KNIFE""KILL_Knife_Ped_Die"4.0011101); 
In my script above. When player dead, they will apply Animation "KNIFE", "KILL_Knife_Ped_Die", and It will check, if player enter vehicle or doing something not correct with that animation, It will loop again that Animation.
And I want to change that animation, but I don't know how to get ID of animation. For example: I want to change "KNIFE", "KILL_Knife_Ped_Die" to "WUZI", "CS_Dead_Guy". And It's working, but It will loop animation "WUZI", "CS_Dead_Guy" because of ID 746 not belong to this animation ("WUZI", "CS_Dead_Guy")
Can you understand what I said ?. If not I'm sorry about my bad english.
Reply
#7

https://sampforum.blast.hk/showthread.php?tid=35399

Got every single animation.
Reply
#8

Quote:
Originally Posted by -CaRRoT
Посмотреть сообщение
Link all dead, bro
Reply
#9

Quote:
Originally Posted by Bumie
Посмотреть сообщение
Link all dead, bro
http://www.jatochnietdan.com/project...ng/release/6.0
Reply
#10

PHP код:
if(GetPlayerAnimationIndex(i) != 746ClearAnimations(i), ApplyAnimation(i"KNIFE""KILL_Knife_Ped_Die"4.0011101); 
I can't understand the number 746 in the code come from where
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)