Sign in to follow this  
Ernesto

Como puedo....

Recommended Posts

¿Como puedo poner a un grupo de ACL un elementdata     osea el          setElementData?

 

Agradezco mucho la ayuda y gracias por leer el mensaje.

Share this post


Link to post
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?

Share this post


Link to post

  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.

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.