Habe mal ein kleines /admins ding gemacht.
Vil. könnt ihr es gebrauchen.
Lua
addCommandHandler("admins",
function (playersource,message, typ)
players = getElementsByType ( "player" )
for k,v in ipairs(players) do
local accountname = ""
if (isGuestAccount(getPlayerAccount(v)) == false) then
accountname = getAccountName (getPlayerAccount(v))
if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) or isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Clan" ) ) or isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Moderator" ) ) or isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "SuperModerator" ) ) then
if accountname == "Marwin" then
title = "Scripter,Leader"
color = "#FF0000"
elseif accountname == "StarCheck" then
title = "Community Leader,Clanwar Leader"
color = "#FF0000"
elseif accountname == "Masterlord" then
title = "Clanwar Leader"
color = "#00FF55"
elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then
title = "Admin"
color = "#FF0000"
elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "SuperModerator" ) ) then
title = "Super Moderator"
color = "#55FF55"
elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Moderator" ) ) then
title = "Moderator"
color = "#FF0000"
elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Clan" ) ) then
title = "Trial"
color = "#00CCFF"
end
setTimer(outputChatBox, 50, 1, getPlayerName(v).."- "..color..""..title, playersource, 255, 255, 255, true )
end
end
end
setTimer(outputChatBox, 55, 1, "___________________", playersource, 255, 0, 0, true )
end)
Alles anzeigen