Fix a big error in the player list

This commit is contained in:
Cooldude2606
2017-03-24 20:31:44 +00:00
parent 4c83e1a4eb
commit aed031e095
2 changed files with 17 additions and 19 deletions

File diff suppressed because one or more lines are too long

View File

@@ -360,7 +360,7 @@ function drawPlayerList()
player.tag = '[Jail]' player.tag = '[Jail]'
end end
end end
if player.admin == true then if player.admin == true and player.tag ~= '[Jail]' then
if player.name == "badgamernl" or player.name == "BADgamerNL" then if player.name == "badgamernl" or player.name == "BADgamerNL" then
a.gui.left.PlayerList.PlayerListScroll.add{type = "label", name=player.name, style="caption_label_style", caption={"", ticktohour(player.online_time), " H - " , player.name , " - OWNER"}} a.gui.left.PlayerList.PlayerListScroll.add{type = "label", name=player.name, style="caption_label_style", caption={"", ticktohour(player.online_time), " H - " , player.name , " - OWNER"}}
a.gui.left.PlayerList.PlayerListScroll[player.name].style.font_color = {r=170,g=0,b=0} a.gui.left.PlayerList.PlayerListScroll[player.name].style.font_color = {r=170,g=0,b=0}
@@ -385,8 +385,7 @@ function drawPlayerList()
end end
end end
for i, player in pairs(game.connected_players) do for i, player in pairs(game.connected_players) do
if player.tag ~= '[Jail]' then if player.admin == false and player.tag ~= '[Jail]' then
if player.admin == false then
if ticktominutes(player.online_time) >= timeForRegular then if ticktominutes(player.online_time) >= timeForRegular then
a.gui.left.PlayerList.PlayerListScroll.add{type = "label", name=player.name, style="caption_label_style", caption={"", ticktohour(player.online_time), " H - " , player.name}} a.gui.left.PlayerList.PlayerListScroll.add{type = "label", name=player.name, style="caption_label_style", caption={"", ticktohour(player.online_time), " H - " , player.name}}
a.gui.left.PlayerList.PlayerListScroll[player.name].style.font_color = {r=24,g=172,b=188} a.gui.left.PlayerList.PlayerListScroll[player.name].style.font_color = {r=24,g=172,b=188}
@@ -406,7 +405,6 @@ function drawPlayerList()
end end
end end
end end
end
addButton('goto', addButton('goto',
function(player,frame) function(player,frame)