Ernesto Posted March 28, 2018 Share Posted March 28, 2018 ¿Como puedo poner a un grupo de ACL un elementdata osea el setElementData? Agradezco mucho la ayuda y gracias por leer el mensaje. Link to comment
kowixd Posted April 11, 2018 Share Posted April 11, 2018 local account = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user." .. account, aclGetGroup("GrupoACL")) then --Tu codigo end No te entiendo muy bien, pero te refieres a eso? Link to comment
Calculador Posted April 14, 2018 Share Posted April 14, 2018 for k, players in ipairs( getElementsByType("player")) do accountname = getAccountName (getPlayerAccount(players)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "admin" ) ) then setElementData(players, "TuElementData", "TuKey") end end Creo que esto se acomoda a lo que quieres. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now