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)
+--- Thread: Animations (/showthread.php?tid=465120)



Animations - AfikAtashga - 20.09.2013

I need to find the ID's of the Animations.
https://sampwiki.blast.hk/wiki/Animations

Swim_Breast it isn't an ID, i need ID!

Thanks helpers.


Re: Animations - jakejohnsonusa - 20.09.2013

I think you missed this part mate
"For a list of all animations ID's, check out the Array by OKStyle ([ACF]OKStyle) at the top of that wiki link"

No worries though!

All you should need is "ApplyAnimation(playerid, "SWIM", "Swim_Breast", 4.1, 0, 1, 1, 1, 1, 1);"

What do you need the ID for (I didn't even know there were numeric ID's lol)?

Or was that what you needed?


Re: Animations - DanishHaq - 21.09.2013

You don't necessarily need the actual animation ID, you can just do something like what the guy above me posted as this is how this works.


Re: Animations - AfikAtashga - 21.09.2013

Quote:
Originally Posted by DanishHaq
Посмотреть сообщение
You don't necessarily need the actual animation ID, you can just do something like what the guy above me posted as this is how this works.
Quote:
Originally Posted by jakejohnsonusa
Посмотреть сообщение
I think you missed this part mate
"For a list of all animations ID's, check out the Array by OKStyle ([ACF]OKStyle) at the top of that wiki link"

No worries though!

All you should need is "ApplyAnimation(playerid, "SWIM", "Swim_Breast", 4.1, 0, 1, 1, 1, 1, 1);"

What do you need the ID for (I didn't even know there were numeric ID's lol)?

Or was that what you needed?
I want it to make an anti cheat. like if player isn't in water, and the animation is SWIMING animations, so he using Fly Hack.
There is isn't ID?


Re: Animations - DanishHaq - 21.09.2013

You can use this include to check that he isn't swimming: http://forum.sa-mp.com/showthread.ph...PlayerSwimming, and if he's not swimming and he has that animation, then you can give an admin warning to him, which tells all the admins online x might be hacking. DO NOT set it to ban the player because if he's swimming at a higher position that the sea level (LV pirate ship), then he's not using hacks but it'll tell the admins only.


Re: Animations - AfikAtashga - 21.09.2013

Quote:
Originally Posted by DanishHaq
Посмотреть сообщение
You can use this include to check that he isn't swimming: http://forum.sa-mp.com/showthread.ph...PlayerSwimming, and if he's not swimming and he has that animation, then you can give an admin warning to him, which tells all the admins online x might be hacking. DO NOT set it to ban the player because if he's swimming at a higher position that the sea level (LV pirate ship), then he's not using hacks but it'll tell the admins only.
Thanks, it's work.
https://sampforum.blast.hk/showthread.php?tid=465104