Multifunctional gas dispenser