Start engine pressing an button
#3

To the previous code: it would be useful to check if the key isn't just being held down, otherwise it will keep toggling the engine on and off.
pawn Code:
if(newkeys & KEY_ACTION && !(newkeys & KEY_ACTION))
I took KEY_ACTION as an example.
Reply


Messages In This Thread
Start engine pressing an button - by Malakay - 04.08.2011, 19:15
AW: Start engine pressing an button - by Drebin - 04.08.2011, 19:21
Re: Start engine pressing an button - by AndreT - 04.08.2011, 19:23
Re: Start engine pressing an button - by Malakay - 04.08.2011, 19:26
Re: Start engine pressing an button - by Malakay - 04.08.2011, 20:13
Re: Start engine pressing an button - by MadeMan - 04.08.2011, 20:16
Re: Start engine pressing an button - by Malakay - 04.08.2011, 20:31
Re: Start engine pressing an button - by LZLo - 04.08.2011, 20:36
Re: Start engine pressing an button - by Malakay - 04.08.2011, 20:37
Re: Start engine pressing an button - by Malakay - 04.08.2011, 20:53

Forum Jump:


Users browsing this thread: 1 Guest(s)