Renaz Posted May 18, 2019 Share Posted May 18, 2019 como eu criar um chat só para quem está em uma acl poder ver e escrever nele? Link to comment
DNL291 Posted May 18, 2019 Share Posted May 18, 2019 (edited) addCommandHandler isObjectInACLGroup getAccountName getPlayerAccount aclGetGroup table.concat outputChatBox Edit: função para mostrar a msg só pra quem é do grupo: --https://wiki.multitheftauto.com/wiki/IsPlayerInACL function isPlayerInACL(player, acl) local accountName = getAccountName( getPlayerAccount(player) ) if accountName ~= "guest" and type( aclGetGroup(acl) ) == "userdata" then return isObjectInACLGroup( "user."..accountName, aclGetGroup(acl) ) end return false end Use-a num loop com getElementsByType. Edited May 18, 2019 by DNL291 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