Joaovit13 Posted July 17, 2019 Share Posted July 17, 2019 Qual comando eu utilizo no outPutChatBox() para só a pessoa que estiver na acl ver Link to comment
Other Languages Moderators Lord Henry Posted July 17, 2019 Other Languages Moderators Share Posted July 17, 2019 isObjectInACLGroup 1 Link to comment
Joaovit13 Posted July 17, 2019 Author Share Posted July 17, 2019 (edited) 19 minutes ago, Lord Henry said: isObjectInACLGroup Eu coloquei isso mais da pras pessoas ver o chat ainda o código ta assim: function MensagemStaff(source, cmd, ...) local MessagemT = table.concat ( { ... }, " " ) local name = getPlayerName(source); for _,v in ipairs(getElementsByType("player")) do local Deadusergroup = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..Deadusergroup, aclGetGroup("Staff")) then outputChatBox("#FF7F00[ Chat-Staff ] #FFFFFF "..name.." #FFFFFF: #FFFFFF"..MessagemT,v, 255, 255, 255, true) --efeito no chat else outputChatBox("Você não pode falar nesse chat!", source, 255,255,255,true) end end end addCommandHandler("cs", MensagemStaff) Edited July 17, 2019 by Joaovit13 Link to comment
Other Languages Moderators Lord Henry Posted July 17, 2019 Other Languages Moderators Share Posted July 17, 2019 Sua linha 5 está errada. Em vez de source, use v 1 Link to comment
Joaovit13 Posted July 17, 2019 Author Share Posted July 17, 2019 33 minutes ago, Lord Henry said: Sua linha 5 está errada. Em vez de source, use v Ah sim obrigado 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