Hotkey Help
#2

Use 'OnPlayerKeyStateChange'.

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


Messages In This Thread
Hotkey Help - by AmirSlaYeR - 13.11.2014, 10:09
Re: Hotkey Help - by FrankTimber - 13.11.2014, 12:27
Re: Hotkey Help - by AmirSlaYeR - 14.11.2014, 14:30

Forum Jump:


Users browsing this thread: 1 Guest(s)