addCommandHandler("admins",function(plr,cmd)
rcon={}
admin={}
support={}
for i,v in pairs(getElementsByType("player")) do
if getElementData(plr, "duty") == 3 then
table.insert(rcon,getPlayerName(v))
elseif getElementData(plr, "duty") == 2 then
table.insert(admin,getPlayerName(v))
elseif getElementData(plr, "duty") == 1 then
table.insert(support,getPlayerName(v))
end
end
outputChatBox("rcon:",plr)
for i,v in pairs(rcon) do
outputChatBox ( " "..v, getRootElement(), 255, 255, 255, true )
end
outputChatBox("admin:",plr)
for i,v in pairs(admin) do
outputChatBox ( " "..v, getRootElement(), 255, 255, 255, true )
end
outputChatBox("support:",plr)
for i,v in pairs(support) do
outputChatBox ( " "..v, getRootElement(),255, 255, 255, true )
end
end)