Report Only Shown On Lower Ranks

This commit is contained in:
Cooldude2606
2018-01-06 15:23:50 +00:00
parent 5bb54db986
commit 54663421d6

View File

@@ -73,7 +73,7 @@ Gui.left.add{
caption={'player-list.format',tick_to_display_format(player.online_time),player.name,rank.short_hand}
}.style.font_color = rank.colour
end
if Admin.report_btn then
if Admin.report_btn and not rank:allowed('no-report') and not player.index == frame.player_index then
local btn = Admin.report_btn:draw(flow)
btn.style.height = 20
btn.style.width = 20