06.09.2013, 20:08
How to make when player use CTRL to do one CMD ?
#define PRESSED(%0) \ (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (PRESSED(KEY_ACTION)) { //do command stuff here } return 1; }