SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 30/06/2020, 03:58 PM   #1
Inspiron
Huge Clucker
 
Inspiron's Avatar
 
Join Date: Jul 2013
Location: Mount Chiliad
Posts: 223
Reputation: 18
Default Need this animation

Can someone tell me the id/name of this animation?
__________________

Website | Discord
Inspiron is online now   Reply With Quote
Old 30/06/2020, 05:44 PM   #2
Bolex_
Gangsta
 
Bolex_'s Avatar
 
Join Date: Aug 2015
Location: Croatia.
Posts: 586
Reputation: 120
Default Re: Need this animation

Just a guess, try this.

Code:
ApplyAnimation(playerid,"PED","SEAT_IDLE",4,0,0,0, 1,0,1);
Bolex_ is offline   Reply With Quote
Old 30/06/2020, 06:00 PM   #3
playstores
Big Clucker
 
Join Date: Feb 2018
Posts: 185
Reputation: 15
Default Re: Need this animation

Use an Animation Filterscript and search for similar words like "SIT"


here https://wiki.sa-mp.com/wiki/Animations
playstores is offline   Reply With Quote
Old 30/06/2020, 06:28 PM   #4
Inspiron
Huge Clucker
 
Inspiron's Avatar
 
Join Date: Jul 2013
Location: Mount Chiliad
Posts: 223
Reputation: 18
Default Re: Need this animation

Quote:
Originally Posted by Bolex_ View Post
Just a guess, try this.

Code:
ApplyAnimation(playerid,"PED","SEAT_IDLE",4,0,0,0, 1,0,1);
Thanks. How do I stop it? Cause space/enter/lmb won't work after applying that animation.
__________________

Website | Discord
Inspiron is online now   Reply With Quote
Old 30/06/2020, 10:55 PM   #5
xRadical3
Gangsta
 
xRadical3's Avatar
 
Join Date: May 2017
Location: Iran
Posts: 565
Reputation: 20
Default Re: Need this animation

Quote:
Originally Posted by Inspiron View Post
Thanks. How do I stop it? Cause space/enter/lmb won't work after applying that animation.
Put this on OnPlayerKeysStateChange callback.
pawn Code:
if ( ( newkeys == KEY_SECONDARY_ATTACK || newkeys == KEY_SPRINT ) && UsingAnim[playerid] == 1 )
{
    ClearAnimations(playerid);
    UsingAnim[playerid] = 0;
}
Just make sure you change the 'UsingAnim' variable to 1 when you apply an animation to the player.
xRadical3 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ANIMATION] Actor animation not applying TWENTYN1NE Scripting Help 2 01/05/2020 10:05 AM
[REQUEST]Animation ID for the fall back animation IKnowWhatIAmDoing Scripting Help 9 03/08/2014 06:51 AM
How to make animation affect only part of the body? (a.k.a walking during animation) gangsta15 Scripting Help 3 09/09/2011 04:38 PM
[ANIMATION]The animation does not work dioguitosbr Help Archive 1 21/01/2010 10:59 PM
Car doors locked animation (Need help to apply animation) yugokoral Help Archive 0 20/09/2009 06:00 PM


All times are GMT. The time now is 05:28 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.