would this be possible
#4

That will work, but it's not the proper way. Here are the macros for keys:

pawn Код:
// HOLDING(keys)
#define HOLDING(%0) \
    ((newkeys & (%0)) == (%0))
pawn Код:
// PRESSED(keys)
#define PRESSED(%0) \
    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
pawn Код:
// RELEASED(keys)
#define RELEASED(%0) \
    (((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
Reply


Messages In This Thread
enter OnPlayerEditObjects - by horsemeat - 22.06.2013, 20:57
Re: would this be possible - by MP2 - 22.06.2013, 21:09
Re: would this be possible - by horsemeat - 22.06.2013, 21:35
Re: would this be possible - by MP2 - 22.06.2013, 21:39
Re: would this be possible - by horsemeat - 22.06.2013, 21:44
Re: would this be possible - by Pottus - 22.06.2013, 21:47
Re: would this be possible - by horsemeat - 22.06.2013, 21:49
Re: would this be possible - by horsemeat - 22.06.2013, 22:05

Forum Jump:


Users browsing this thread: 1 Guest(s)