SA-MP Forums Archive
[Question] GetPlayerAnimationIndex - 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)
+--- Thread: [Question] GetPlayerAnimationIndex (/showthread.php?tid=601263)



[Question] GetPlayerAnimationIndex - Bumie - 19.02.2016

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 !!


Re: [Question] GetPlayerAnimationIndex - FreAkeD - 19.02.2016

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


Re: [Question] GetPlayerAnimationIndex - BiosMarcel - 19.02.2016

https://sampwiki.blast.hk/wiki/GetPlayerAnimationIndex
https://sampwiki.blast.hk/wiki/Animations


Re: [Question] GetPlayerAnimationIndex - Bumie - 19.02.2016

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 !


Re: [Question] GetPlayerAnimationIndex - BiosMarcel - 19.02.2016

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


Re: [Question] GetPlayerAnimationIndex - Bumie - 20.02.2016

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.


Re: [Question] GetPlayerAnimationIndex - -CaRRoT - 20.02.2016

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

Got every single animation.


Re: [Question] GetPlayerAnimationIndex - Bumie - 20.02.2016

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


Re: [Question] GetPlayerAnimationIndex - -CaRRoT - 20.02.2016

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


Re: [Question] GetPlayerAnimationIndex - Bumie - 20.02.2016

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