Jump to content

acl scoreboard can't load meta.xml


Young$

Recommended Posts

Posted

ERROR: Couldn't find meta.xml file for resource aclScoreboard.

help he can't load acl Scoreboard. script is good everything. i have make meta.xml again but same error.

ERROR: Couldn't find meta.xml file for resource aclScoreboard

Posted

<meta> 
    <info author="youngs" type="misc" name="ACL in scoreboard" /> 
    <script src="acl.lua" type="server"/> 
</meta> 

You forgot / in end block.

Posted
<meta> 
    <info author="youngs" type="misc" name="ACL in scoreboard" /> 
    <script src="acl.lua" type="server"/> 
</meta> 

You forgot / in end block.

how you mean

Posted

<meta> 
    <info author="youngs" type="misc" name="ACL in scoreboard" /> 
    <script src="acl.lua" type="server"/> 
</meta><!-- you use <meta> ( not </meta> ) --> 

Understand?

Posted

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

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...