Need help with animations[+REP] - 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: Need help with animations[+REP] (
/showthread.php?tid=367603)
Need help with animations[+REP] -
Strech - 10.08.2012
Any tutorial how to create animations and to make them stop using the Spacebar?
Re: Need help with animations[RP Gamemode] -
Strech - 10.08.2012
Any ideas where i can learn alot for animations?
Re: Need help with animations[+REP] -
[MM]RoXoR[FS] - 10.08.2012
Apply Animation using
ApplyAnimation
pawn Code:
//To stop animation
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED( KEY_SPRINT ))
if(GetPlayerAnimationIndex(playerid)!=0)
ClearAnimations(playerid);
return 1;
}
Re: Need help with animations[+REP] -
AliveBG - 10.08.2012
read this
ApplyAnimation and
SetPlayerSpecialAction.
this is example:
PHP Code:
if(strcmp(cmdtext, "/arrest", true) == 0)
{
if(GetPlayerState(playerid) == 1)
{
ApplyAnimation(playerid, "PED", "ARRESTgun", 4.0, 0, 1, 1, 1, -1); // Gun Arrest
}
return 1;
}
Edit: [MM]RoXoR[FS] overtake me.