14.07.2015, 08:35
You can't detect pressing the ESC key as far as I know and ESC will always trigger the cancellation of using the mouse to click a textdraw.
The only suggestion I would make is implementing the code below which will reset the mouse when you press SPACE
The only suggestion I would make is implementing the code below which will reset the mouse when you press SPACE
Код:
#define PRESSED(%0) \ (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(PRESSED(KEY_SPRINT)) { CancelSelectTextDraw(playerid); SelectTextDraW(playerid); } }