public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if( ( newkeys & KEY_YES ) && !( oldkeys & KEY_YES ) ) { CallLocalFunction( "OnPlayerCommandText", "is", playerid, "/robplace" ); } return 1; }