Animation start when jumping
#1

OnPlayerUpdate:
pawn Код:
if(Keys &= 32)
            {
                TogglePlayerControllable(playerid, false);
              SetTimerEx("SimpleDrunk", 2000, false, "i", playerid);
            }
SimpleDrunk:

pawn Код:
public SimpleDrunk(playerid)
{
  ClearAnimations(playerid);
  ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
}
Nothing happens when I press the shift key, it worked when I had changed the "Keys &=32" to "Keys &= 16" and I pressed enter though.
Why doesn't the animation start two seconds after I press the jump key (shift)?
Reply
#2

Try to replace "&=" with "&". I think, they are the same, but I don't see any other problems.
Reply
#3

FIXED: I changed it to
Код:
Keys == KEY_JUMP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)