DarkRP - Demote (and teamban) on death

So currently I am using:


hook.Add("PlayerDeath","DemoteMayor",function(v,k)
    if (v:Team() == TEAM_MAYOR) then
        v:ChangeTeam(TEAM_CITIZEN,true);
        for k, v in ipairs(player.GetAll()) do
            v:PrintMessage(HUD_PRINTCENTER,"The Mayor has been killed!");
        end;
    end;
end);

to make a player go back to citizen on death, but there is nothing stopping them from trying to become a mayor straight after (which I do not want). Is there any way I can make them banned from said team on death?

Thanks.


(User was banned for this post ("Missed the DarkRP thread" - garry))

player:TeamBan()