Sign in to follow this  
Joaovit13

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

Share this post


Link to post

Sua linha 5 está errada. Em vez de source, use v

  • Thanks 1

Share this post


Link to post
33 minutes ago, Lord Henry said:

Sua linha 5 está errada. Em vez de source, use v

Ah sim obrigado

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.