CSB Anti Team Attack handles friendly fire two ways. With csb_atac_block on, a Ham_TakeDamage hook zeroes any damage between teammates — simple and absolute. With it off, the plugin instead counts team damage and team kills per player per map, and when someone crosses csb_atac_dmg_limit damage or csb_atac_tk_limit kills it punishes them.
The punishment is chosen by csb_atac_action: 1 slays, 2 kicks, 3 bans for csb_atac_bantime minutes. Every team kill is announced with a running count so players know where they stand. Inspired by ATAC by BAILOPAN; independent GPL re-implementation.
SetHamParamFloat.csb_atac.sma and copy it to addons/amxmodx/plugins/.plugins.ini and change the map.Block mode needs friendly fire to actually be reaching the damage hook, so it works whether mp_friendlyfire is on or off. Bans are written with writeid.