Need help with animations[+REP]
#1

Any tutorial how to create animations and to make them stop using the Spacebar?
Reply
#2

Any ideas where i can learn alot for animations?
Reply
#3

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;
}
Reply
#4

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.00111, -1); // Gun Arrest
    
}
    return 
1;

Edit: [MM]RoXoR[FS] overtake me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)