How to detect?
#2

Code:

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(PRESSED(KEY_YES))
    {
        ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "test","You pressed Y!","Ok","Close");
    }
    return 1;
}
At the top of script:

pawn Код:
#define PRESSED(%0) \
    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
Search more Keys right here!
Reply


Messages In This Thread
How to detect? - by Glossy42O - 08.12.2014, 17:31
Re: How to detect? - by HY - 08.12.2014, 17:36
Re: How to detect? - by Sawalha - 08.12.2014, 17:39
Re: How to detect? - by Glossy42O - 08.12.2014, 18:29

Forum Jump:


Users browsing this thread: 1 Guest(s)