how would..?
#5

Quote:
Originally Posted by KinderClans
Посмотреть сообщение
This?

pawn Код:
#define HOLDING(%0) \
    ((newkeys & (%0)) == (%0))
pawn Код:
if(HOLDING(YOUR_KEY))
{
      //Yourcode
}
Quote:
Originally Posted by ******
Посмотреть сообщение
Start a timer in OnPlayerKeyStateChange when they start pressing the key. Kill the timer in the same place if they ever release it. Then do what you want in the timer function.

very thanks! i was able to do it!
Reply


Messages In This Thread
how would..? - by Alteh - 12.10.2018, 07:29
Re: how would..? - by KinderClans - 12.10.2018, 08:55
Re: how would..? - by khRamin78 - 12.10.2018, 09:17
Re: how would..? - by KinderClans - 12.10.2018, 10:03
Re: how would..? - by Alteh - 12.10.2018, 22:52

Forum Jump:


Users browsing this thread: 2 Guest(s)