04.08.2011, 19:23
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.
I took KEY_ACTION as an example.
pawn Code:
if(newkeys & KEY_ACTION && !(newkeys & KEY_ACTION))