The treasurer shall disburse the money in the treasury on county warrants only when they are based on orders of the board of supervisors, upon order of the superior court, or as otherwise provided by law. In the payment of the warrants he may issue his order, check, or draft drawn upon proper funds that are on deposit in any bank.