Try this out. Also added two other cvars: amx_filterlimit for number of times the filter is applied before getting pusnished and amx_filterbantime for the length of the ban if amx_filterpunishment is 2.
Awesome idea both new cvars, it works perfectly. Thank you so much!