if(GetVehicleModel(GetPlayerVehicleID(playerid)) == /*Plane model ID*/) {// Is in a plane} else {// Isn't in a plane}