A local unit of government shall not impose special taxation on, enact or enforce any ordinance or regulation pertaining to, or regulate in any other manner the ownership, registration, purchase, sale, transfer, transportation, or possession of pistols or other firearms, ammunition for pistols or other firearms, or components of pistols or other firearms, except as otherwise provided by federal law or a law of this state.