This should fix any issue you had with team killing.
//Called on team kill
function killedTooMuch( att )
if att:IsAdmin() then return false end
if shipdata[TEAM_RED].sinking||shipdata[TEAM_BLUE].sinking then return false end
local kds = att.kd
if kds==2 then
att:PrintMessage(HUD_TALKCENTER, "You're team killing!")
elseif kds>=5 then
if !starting then
if ASS_VERSION then
ASS_BanPlayer( att, att:UniqueID( ), ( 7.5 * 60 ), "Automated temporary ban" )
game.ConsoleCommand( "banid 7.5 "..tostring( att:UserID() ).." kick\n" )
Checks if ASS is installed so you can unban them that way, I'll add ULX support but I am not familiar with it. Also doesn't ban admins and doesn't count while sinking.
Also I still have to test ASS support so I didn't update SVNs.