function getAdminsOnline ()
local tbl = { }
for k,v in ipairs ( getElementsByType ( "player" ) ) do
if ( getElementData ( v , "staff" ) ) then
table.insert ( tbl , v )
end
end
return tbl
end
-- example
addCommandHandler("getAdmins", function(player)
for k,v in ipairs ( getAdminsOnline() ) do
outputChatBox(k.."- "..getPlayerName(v),player)
end
end )