B. The provisions of this Section do not apply to the use of a horn, alarm, or other warning device which has as its purpose the signaling of unsafe or dangerous situations or to summon the assistance of law enforcement when used for such purpose, or when used in conjunction with a permitted event.