txtsup=""
for k,v in ipairs(admins)do
if admins[k].level==4 then
owner=owner+1
table.insert(ownertab,admins[k].nazwa)
elseif admins[k].level==3 then
root=root+1
table.insert(roottab,admins[k].nazwa)
elseif admins[k].level==2 then
adm=adm+1
table.insert(admtab,admins[k].nazwa)
elseif admins[k].level==1 then
mod=mod+1
table.insert(modtab,admins[k].nazwa)
elseif admins[k].level==5 then
sup=sup+1
table.insert(suptab,admins[k].nazwa)
end
end
if #ownertab>0 then
txtowner="("..table.concat(ownertab,",").."#ffffff)"
end
if #roottab>0 then
txtroot="("..table.concat(roottab,",").."#ffffff)"
end
if #admtab>0 then
txtadm="("..table.concat(admtab,",").."#ffffff)"
end
if #modtab>0 then
txtmod="("..table.concat(modtab,",").."#ffffff)"
if #modtab>0 then
txtmod="("..table.concat(modtab,",").."#ffffff)"
end
if #modtab>0 then
txtmod="("..table.concat(suptab,",").."#ffffff)"
if #suptab>0 then
txtmod="("..table.concat(suptab,",").."#ffffff)"
end
dxDrawText("Aktywna administracja(/admins) :\n\n#E47833W?a?ciciel#ffffff : "..owner.." "..txtowner.."\n#cc00ccROOT #ffffff: "..root.." "..txtroot.."\n#ff0000Administrator #ffffff: "..adm.." "..txtadm.."\n#0099ffModerator #ffffff: "..mod.." "..txtmod.."\n#0099ffSupporter #ffffff: "..sup.." "..txtsup..", (481/1920)*screen.x, (221/1080)*screen.y, (847/1920)*screen.x, (380/1080)*screen.y, tocolor(255, 255, 255, 255), 1.00, score.font3, "left", "center", false, false, true, true, false)