Jump to content

ACL problem.


HappyMeal

Recommended Posts

Posted

Hey i've made this code that checks players acl and it set to an setElementData and then to draw image bit it wont work.

addEventHandler( 'onPlayerLogin', root, 
    function ( ) 
        local account = getPlayerAccount( source ) 
        if account and not isGuestAccount( account ) then 
            local accountName = getAccountName( account ); 
            if isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Admin" ) ) then 
                setElementData( source, "Classicon", tostring( ":experience/class/classicon_admin.png" ) ); 
            elseif isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Moderator" ) ) then 
                setElementData( source, "Classicon", tostring( ":experience/class/classicon_mod.png" ) ); 
            else 
                setElementData( source, "Classicon", tostring( ":experience/class/classicon_player.png" ) ); 
            end 
       end 
    end 
); 

Posted

Be more specific. Which part doesn't work?

Need a scripter? Feel free to contact me for inexpensive high-quality service!

Skype username: friedonibot

Posted
Looks like Droam|Oussez(https://forum.multitheftauto.com/memberlist.php? ... le&u=81422) or -Blue- guy made a new account (because on their original one they were asking too often for helping with fixing cloned/stolen scripts)

Good job cloner! :)

You're probably right. Those guys kept sending me PMs to fix their code (in some kind of odd language), and I foolishly did not realizing that the errors were foolish (any scripter that made those scripts he was sending me could realize the issue himself). Anyway, I'm not helping him anymore.

Need a scripter? Feel free to contact me for inexpensive high-quality service!

Skype username: friedonibot

Posted
I'm Not oussez. I dont have that stupid enlish. "Me maked this script help me fixe it. Im pro than..."

You are Droam|Oussez because he always said fixe :lol:

Posted

Of course you're not dumbsezz. You're Droam|Oussez

Need a scripter? Feel free to contact me for inexpensive high-quality service!

Skype username: friedonibot

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