Anti Team Kill Script HELP ??

Hi Ive been trying to get this anti team script to work all i want is a list of groups A’s jobs to not be able to attack Groups B’s Jobs
Can someone help me fix the code? I know its very close and i know many other people are wanting this as well!
As you can see this guy got started http://forum.facepunch.com/showthread.php?t=1389361 but he didnt seem to finish it and
i cant go any further with it doesnt work when i throw in autodl
Here is my current code for it http://pastebin.com/bXXiRn4w

[editline]12th November 2016[/editline]

i also have money just throwing that out there and i really really want this script working just giving some thoughts not implying anything