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 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

[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