08.12.2014, 17:36
Code:
At the top of script:
Search more Keys right here!
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(KEY_YES))
{
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "test","You pressed Y!","Ok","Close");
}
return 1;
}
pawn Код:
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))