Jump to content

Dar permissao


Recommended Posts

if isObjectInACLGroup("user."..conta, aclGetGroup("Admin"), aclGetGroup("Moderador")) then


Usa esse if no começo do seu script exemplo :

function exemplo(thePlayer, cmd, ...) 
	local conta = getAccountName (getPlayerAccount(thePlayer))
    if isObjectInACLGroup("user."..conta, aclGetGroup("Admin"), aclGetGroup("Moderador")) then
    local message = table.concat ( { ... }, " " ) 
    local name = getPlayerName(thePlayer) 
	outputChatBox("Mensagem Global De Admin"..name..": #FFFFFF"..message, getRootElement(), 255, 255, 255, true)
	end
	end
addCommandHandler("exe", exemplo) 

 

Link to comment

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