Multifunction sprayer