mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 04:51:40 +09:00
Fix a big error in the player list
This commit is contained in:
File diff suppressed because one or more lines are too long
34
source.lua
34
source.lua
@@ -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,25 +385,23 @@ 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}
|
player.tag = "[Regular]"
|
||||||
player.tag = "[Regular]"
|
elseif player.name == "explosivegaming" then
|
||||||
elseif player.name == "explosivegaming" then
|
for i=10,1,-1 do
|
||||||
for i=10,1,-1 do
|
a.gui.left.PlayerList.PlayerListScroll.add{type = "label", name=player.name .. i, style="caption_label_style", caption={"", ticktohour(player.online_time), " H - " , player.name , i}}
|
||||||
a.gui.left.PlayerList.PlayerListScroll.add{type = "label", name=player.name .. i, style="caption_label_style", caption={"", ticktohour(player.online_time), " H - " , player.name , i}}
|
a.gui.left.PlayerList.PlayerListScroll[player.name .. i].style.font_color = {r=24,g=172,b=188}
|
||||||
a.gui.left.PlayerList.PlayerListScroll[player.name .. i].style.font_color = {r=24,g=172,b=188}
|
player.tag = "[TEST]"
|
||||||
player.tag = "[TEST]"
|
|
||||||
end
|
|
||||||
else
|
|
||||||
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=255,g=159,b=27}
|
|
||||||
player.tag = "[Guest]"
|
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
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=255,g=159,b=27}
|
||||||
|
player.tag = "[Guest]"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user