28.10.2013, 17:33
You code should've worked, it seems fine to me.
Compile and test it in-game. Does it show the message?
pawn Код:
public OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
{
if( ( newkeys & KEY_YES ) && !( oldkeys & KEY_YES ) )
{
SendClientMessage( playerid, -1, "Y key" );
}
return 1;
}