Jump to content

acl scoreboard can't load meta.xml


Young$

Recommended Posts

thnx but the scoreboard is wrong script i think?

this is script :arrowdown:

_________________________________________________________________

--call(getResourceFromName("scoreboard"), "addScoreboardColumn")

exports["scoreboard"]:scoreboardAddColumn("ACL")

function setACL(player)

local admin = "Admin"

local supermoderator = "SuperModerator"

local moderator = "Moderator"

local everyone = "Visitor"

local console = "HeadAdmin"

if isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Admin" ) ) then

setElementData ( player, "ACL", admin )

elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "SuperModerator" ) ) then

setElementData ( player, "ACL", supermoderator )

elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Moderator" ) ) then

setElementData ( player, "ACL", moderator )

elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Console" ) ) then

setElementData ( player, "ACL", console )

elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Everyone" ) ) then

setElementData ( player, "ACL", everyone )

end

end

function timer()

setTimer( setACL, 1000, 1, source )

end

addEventHandler("onPlayerLogin", getRootElement(), timer)

addEventHandler("onPlayerJoin", getRootElement(), timer)

___________________________________________________________________

and this is scoreboard

___________________________________________________________________

mta-screen_2012-01-23_14-47-34.png

___________________________________________________________________

and this is what i want

___________________________________________________________________

mta-screen_2012-01-23_14-46-46.png

___________________________________________________________________

i hope you can give a good script

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...