luis07 Posted June 4, 2020 Posted June 4, 2020 Olá boa tarde, eu queria saber como posso dar permissão a algum comando no meu servidor, neste caso eu tenho um script de /pro, e eu queria saber como posso dar acesso aos ajudantes/moderadores a esse comando
DNL291 Posted June 5, 2020 Posted June 5, 2020 isObjectInACLGroup O caminho mais fácil é utilizar a função https://wiki.multitheftauto.com/wiki/IsPlayerInACL que você deve incluir no seu código.
Bullyn Posted June 6, 2020 Posted June 6, 2020 On 04/06/2020 at 21:56, luis07 said: Obrigado Já foi resolvido ?
luis07 Posted June 8, 2020 Author Posted June 8, 2020 On 06/06/2020 at 13:48, Baguera said: Já foi resolvido ? Não
Giovany Mito Posted June 8, 2020 Posted June 8, 2020 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)
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