Fast Run Using Animation
#1

Hi Guys When i Press SPRINT Button The Player Start Runing 100% and when i want to stop i can't why ?
The problem is I can't make them stop



Код:
#define HOLDING(%0) \
    ((newkeys & (%0)) == (%0))
#define RELEASED(%0) \
    (((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
Код:
if (HOLDING( KEY_SPRINT ))
{
    if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) { return 1; }
    ApplyAnimation(playerid,"MUSCULAR","MuscleSprint",4.0,1,1,1,1,1);
    return 1;
}
else if (RELEASED( KEY_SPRINT ))
{
    if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) { return 1; }
    ClearAnimations(playerid);
    return 1;
}
Reply
#2

Try replacing ClearAnimations with this:

pawn Код:
ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
Reply
#3

Quote:
Originally Posted by MP2
Посмотреть сообщение
Try replacing ClearAnimations with this:

pawn Код:
ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
i will see
Reply
#4

Edit: Thanks Alot!!! +REEEEP :')
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)