How to kick people from their vehicle when they shoot with Hydra
#3

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:

pawn Код:
if( (newkeys & KEY_FIRE) && !(newkeys & KEY_FIRE) )
(Checks if KEY_FIRE is in newkeys, but not in oldkeys)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)