Jump to content

Chat Só pra ACL


Recommended Posts

Posted (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 by DNL291

Please do not PM me with scripting related question nor support, use the forums instead.

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