public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){ if ((newkeys & KEY_SUBMISSION) && !(oldkeys & KEY_SUBMISSION)) { // code from your /flip command to flip the vehicle.. } return 1;}