I implemented what Achenar249 asked for, excluding the two convars for switching between team damage and team kills. I just simply went with team kills, I've also implemented five different punishments. I'm quite tired right now, but the link is here:
https://github.com/ZachPerkitny/csgo-team-kill-manager. If there are any bugs, or you want me to add any new punishments or features, just let me know.