13.11.2014, 12:27
Use 'OnPlayerKeyStateChange'.
At the top of your script:
Under OnPlayerKeyStateChange
At the top of your script:
Код:
#define PRESSED(%0) \ (((newkeys&(%0))==(%0)) && ((oldkeys & (%0)) != (%0)))
Код:
if(PRESSED(KEY_SUBMISSION)) // Key number '2'. Not numpad 2. { //code here return 1; }