Alright so for when the mayor dies he will be changed to citizen, but I was wondering how I would make a team ban for when he dies, it bans him for X seconds.
Currently, I have this for mayor death:
if (v:Team() == TEAM_MAYOR) then
for k, v in ipairs(player.GetAll()) do
v:PrintMessage(HUD_PRINTCENTER,“The mayor has died!”);
So how would I make this ban him from going the job TEAM_MAYOR for X seconds