So currently I am using:
[code]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);[/code]
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.
[highlight](User was banned for this post ("Missed the DarkRP thread" - garry))[/highlight]
player:TeamBan()
Sorry, you need to Log In to post a reply to this thread.