01.08.2010, 14:49
You have to check the keys with '&' instead of '==', then it also returns true, if other keys are pressed.
So to check if someone presses the firekey you can use this:
(Checks if KEY_FIRE is in newkeys, but not in oldkeys)
So to check if someone presses the firekey you can use this:
pawn Код:
if( (newkeys & KEY_FIRE) && !(newkeys & KEY_FIRE) )