No county or city shall adopt any local law, ordinance, resolution or regulation having the force of law rendering public intoxication by alcohol in and of itself or being a common drunkard or being found in enumerated places in an intoxicated condition, an offense, a violation, or the subject of criminal penalties. Nothing herein contained shall affect any laws, ordinances, resolutions or regulations against drunken driving, driving under the influence of alcohol, or other similar offenses that involve the operation of motor vehicles, machinery or other hazardous equipment.