Having trouble opening the gate.
#3

You need to use the oldkeys parameter as well, to check if the oldkeys do not contain the newkeys.

pawn Код:
if((newkeys & 16) && !(oldkeys & 16))
Refer to https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange for more information.
Reply


Messages In This Thread
Having trouble opening the gate. - by TheYoungCapone - 10.12.2011, 17:34
Re: Having trouble opening the gate. - by TheYoungCapone - 12.12.2011, 01:16
Re: Having trouble opening the gate. - by JamesC - 12.12.2011, 02:45

Forum Jump:


Users browsing this thread: 1 Guest(s)