Jump to content

Duvida de outPutChatBox


Recommended Posts

19 minutes ago, Lord Henry said:

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