Jump to content

About ACL groups


SkatCh

Recommended Posts

Posted

guys i need some help here :

function joinNameCheck(old,new) 
local account = getAccountName(new) 
        if (isObjectInACLGroup("user."..account, aclGetGroup("Trial Staff"))) then  --> this line 
                  adminLoginMessage(source, getPlayerName(source).." logged in - L1") 
            return 
        elseif (isObjectInACLGroup("user."..account, aclGetGroup("Trained Staff"))) then 
            adminLoginMessage(source, getPlayerName(source).." logged in - L2") 
            return 
        elseif (isObjectInACLGroup("user."..account, aclGetGroup("Trusted Staff"))) then 
            adminLoginMessage(source, getPlayerName(source).." logged in - L3") 
            return 
        elseif (isObjectInACLGroup("user."..account, aclGetGroup("Hight Staff"))) then 
            adminLoginMessage(source, getPlayerName(source).." logged in - L4") 
            return 
        elseif (isObjectInACLGroup("user."..account, aclGetGroup("Head Staff"))) then 
                adminLoginMessage(source, getPlayerName(source).." logged in - L5") 
            return 
            end 
            end 
addEventHandler("onPlayerLogin", root, joinNameCheck) 

it's just a part from my script , the problem is when i login i got this warning :

Bad argument @isObjectInACLGroup ' [Excepted acl-group at argument 2 , got boolean]

Failure is simply an opportunity to begin again more intelligently - Henry Ford

Posted

you need to get the account name like this , "on line 2 "

local accName = getAccountName ( getPlayerAccount ( source ) ) -- get his account name 
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) )  

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted

i don't undrestand , what are u talking about i already tried it .

Failure is simply an opportunity to begin again more intelligently - Henry Ford

Posted
i don't undrestand , what are u talking about i already tried it .

i mean , you trying to getAccountName , but you use it like this ,

local account = getAccountName(new) 

it should be ,

local account = getAccountName(getPlayerAccount(new)) 

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted

i tried both also i'm pretty sure that i have Trial Staff in my ACL group.

Failure is simply an opportunity to begin again more intelligently - Henry Ford

Posted
i tried both also i'm pretty sure that i have Trial Staff in my ACL group.

Well , maybe you Can't make a space between the words , it has to be connected ?

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

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