Bom vamos lá! @BlackinSCR Gostei do nick haha'
function adminchat4 ( thePlayer, _, ... )
local message = table.concat ( { ... }, " " )
if ( isPlayerOnGroup ( thePlayer ) ) then
for _, player in ipairs ( getElementsByType ( "player" ) ) do
if ( isPlayerOnGroup ( player ) ) then
if getElementData (thePlayer, "ChatGlobal:Delay1", true) then
outputChatBox ( MensagemFalandoRapidoDemaisGlobal, thePlayer, 255, 255, 255, true ) return end
local conta = getAccountName(getPlayerAccount(player)) -- Aqui voce deve verificar para quem irá aparcer a mensagem (player definido no for)
if isObjectInACLGroup ("user."..conta, aclGetGroup ( "Staff" ) ) then
outputChatBox("* #bfbfbfDeep Web - #ffffff"..getPlayerName(thePlayer).. " ("..getPlayerID(thePlayer)..") #bfbfbf- "..message, player, 255, 255, 255, true)
elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Everyone" ) ) then
outputChatBox("* #bfbfbfDeep Web - "..message, player, 255, 255, 255, true)
end
end
end
end
setElementData ( thePlayer, "ChatGlobal:Delay2",true )
setTimer ( setElementData, 100, 1, thePlayer, "ChatGlobal:Delay2", false )
end
addCommandHandler ( ComandoDoChatGlobal4, adminchat4 )