The function for this?
#4

I believe it should be something like this:
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
   if(newkeys & 8) && !(oldkeys & 8)
   {
      printf("%s pressed the sprint key"); //assuming the shift key is your sprint key
      return 1;
   }
   return 1;
}
But I haven't tested it.
Reply


Messages In This Thread
The function for this? - by Torran - 23.01.2010, 18:55
Re: The function for this? - by LuxurioN™ - 23.01.2010, 19:39
Re: The function for this? - by Torran - 23.01.2010, 19:41
Re: The function for this? - by biltong - 23.01.2010, 19:46

Forum Jump:


Users browsing this thread: 1 Guest(s)