SA-MP Forums Archive
Animation start when jumping - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Animation start when jumping (/showthread.php?tid=131823)



Animation start when jumping - SWEMike - 05.03.2010

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)?


Re: Animation start when jumping - ¤Adas¤ - 05.03.2010

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


Re: Animation start when jumping - SWEMike - 05.03.2010

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