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


Messages In This Thread
Fast Run Using Animation - by samp_boy - 23.03.2014, 20:05
Re: Fast Run Using Animation - by MP2 - 23.03.2014, 20:09
Re : Re: Fast Run Using Animation - by samp_boy - 24.03.2014, 09:51
Re : Fast Run Using Animation - by samp_boy - 24.03.2014, 09:54

Forum Jump:


Users browsing this thread: 1 Guest(s)