Jump to content

Alguém pd de me ajudar num chat local?


Recommended Posts

atempt to concatenate a boolean value ---------aparece isso
-- Config do Chat Local

addEventHandler("onPlayerChat", root, function(tresc, msgtype)
if (msgtype == 0) then
    cancelEvent()
	local x,y,z = getElementPosition(source)
	for key, gracze in ipairs(getElementsByType("player")) do
	local x2,y2,z2 = getElementPosition(gracze)

--	if getElementData (source, "ChatLocal:Delay", true) then
--	outputChatBox ( MensagemFalandoRapidoDemaisLocal, source, 255, 255, 255, true ) return end

	if ( getDistanceBetweenPoints3D ( x, y, z, x2, y2, z2 ) < DistanciaDoChatLocal ) then
	local int = getElementInterior   ( source )
	local dim = getElementDimension  ( source )
	local int2 = getElementInterior  ( gracze )
	local dim2 = getElementDimension ( gracze )
	if ( int == int2 and dim == dim2 ) then

	conta = getAccountName ( getPlayerAccount ( source ) )

	if isObjectInACLGroup ("user."..conta, aclGetGroup ( "Console" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00● #00ff8cPresidente #00FF00●  #00ff8c"..getPlayerName(source).. "#00FA9A » :#ffffff "..tresc, gracze, 255, 255, 255, true)

	elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Admin" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00●  #ff6600Vice Presidente #00FF00●  #ff6600"..getPlayerName(source).."#A914F9 » :#ffffff "..tresc, gracze, 255, 255, 255, true)

		elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Humanos" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00●  #00ffedAdm Corp/Gang #00FF00●  #00ffed"..getPlayerName(source).."#A914F9 » :#ffffff "..tresc, gracze, 255, 255, 255, true)

	elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "SuperModerator" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00●  #00ffedDeputado Estadual #00FF00●  #00ffed"..getPlayerName(source).."#A914F9 » :#ffffff "..tresc, gracze, 255, 255, 255, true)

	elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Moderator" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00●  #00ffed Vereador #00FF00●  #00ffed"..getPlayerName(source).."#ffffff » :#ffffff "..tresc, gracze, 255, 255, 255, true)
	
	elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "BOPE" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00● #000000 BOPE  #00FF00●  #000000"..getPlayerName(source).."#ffffff » :#ffffff ".. tresc, gracze, 255, 255, 255, true)
	
	elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "CHOQUE" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00● #635f5f C O E  #00FF00●  #635f5f"..getPlayerName(source).."#ffffff » :#ffffff ".. tresc, gracze, 255, 255, 255, true)
	
	elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "COE" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00● #228B22  #00FF00●  #228B22"..getPlayerName(source).."#ffffff » :#ffffff ".. tresc, gracze, 255, 255, 255, true)	
	
	elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "ROTA" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00● #838B83 ROTA  #00FF00●  #838B83"..getPlayerName(source).."#ffffff » :#ffffff ".. tresc, gracze, 255, 255, 255, true)
	
	elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "BAEP" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00● #838B83 BAEP  #00FF00●  #838B83"..getPlayerName(source).."#ffffff » :#ffffff ".. tresc, gracze, 255, 255, 255, true)
	
	elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "PF" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00● #E47833 Policia Federal  #00FF00●  #E47833"..getPlayerName(source).."#ffffff » :#ffffff ".. tresc, gracze, 255, 255, 255, true)

	elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "PETO" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00● #000000 PETO  #00FF00●  #000000"..getPlayerName(source).."#ffffff » :#ffffff ".. tresc, gracze, 255, 255, 255, true)

	elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "ROCAM" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00● #Ff0000 ROCAM  #00FF00●  #Ff0000"..getPlayerName(source).."#ffffff » :#ffffff ".. tresc, gracze, 255, 255, 255, true)	
	
	elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "CBV" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00● #Ff0000 Comando Bala Voa #00FF00●  #Ff0000"..getPlayerName(source).."#ffffff » :#ffffff "..tresc, gracze, 255, 255, 255, true)
	
	elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "CV" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00● #Ff0000 Comando Vermelho #00FF00●  #Ff0000"..getPlayerName(source).."#ffffff » :#ffffff "..tresc, gracze, 255, 255, 255, true)
	
	elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "TCP" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00● #FFFF00Terceiro Comando Puro #00FF00●  #FFFF00"..getPlayerName(source).."#ffffff » :#ffffff "..tresc, gracze, 255, 255, 255, true)
	
	elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "ANS" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00● #000000 Anonymous #00FF00●  #000000"..getPlayerName(source).."#ffffff » :#ffffff "..tresc, gracze, 255, 255, 255, true)	
	
	elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "OG" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00● #8A2BE2 Os Guri #00FF00●  #8A2BE2"..getPlayerName(source).."#ffffff » :#ffffff "..tresc, gracze, 255, 255, 255, true)

    elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Designer" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #0000FF● Designer ●  #FFFFFF"..getPlayerName(source).."#ffffff » :#ffffff "..tresc, gracze, 255, 255, 255, true)
	
	elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Moderador" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #FFFFFF● Vereador ●  #FFFFFF"..getPlayerName(source).."#ffffff » :#ffffff "..tresc, gracze, 255, 255, 255, true)

----------------------------------------------------------------------------------------

    elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Omega" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00● #00FF00 VIP OMEGA #00FF00●  #00FF00"..getPlayerName(source).."#ffffff » :#ffffff ".. tresc, gracze, 255, 255, 255, true)

    elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Sigma" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00● #00FF00 VIP SIGMA #00FF00●  #00FF00"..getPlayerName(source).."#ffffff » :#ffffff ".. tresc, gracze, 255, 255, 255, true)

    elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Epsylon" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00● #00FF00 VIP EPSYLON #00FF00●  #00FF00"..getPlayerName(source).."#ffffff » :#ffffff ".. tresc, gracze, 255, 255, 255, true)

    elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Alpha" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00● #00FF00 VIP ALPHA #00FF00●  #00FF00"..getPlayerName(source).."#ffffff » :#ffffff ".. tresc, gracze, 255, 255, 255, true)

----------------------------------------------------------------------------------------

	elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "VIP" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00● #00FF00 VIP #00FF00●  #00FF00"..getPlayerName(source).."#ffffff » :#ffffff ".. tresc, gracze, 255, 255, 255, true)
	
	elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "UBER" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00● #838B83 UBER  #00FF00●  #838B83"..getPlayerName(source).."#ffffff » :#ffffff ".. tresc, gracze, 255, 255, 255, true)

	elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Mecanico" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00● #228B22 Mecanico #00FF00●  #228B22".. getPlayerName(source).."#ffffff » :#ffffff ".. tresc, gracze, 255, 255, 255, true)
	
	elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "SAMU" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00● #Ff0000 SAMU #00FF00●  #Ff0000"..getPlayerName(source).."#ffffff » :#ffffff ".. tresc, gracze, 255, 255, 255, true)

	elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "GIRL" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00● #FF00F6 Garotas De Programa #00FF00●  #FF00F6"..getPlayerName(source).."#ffffff » :#ffffff ".. tresc, gracze, 255, 255, 255, true)
	
	elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Ajudante" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00● #FFEE00 Ajudante #00FF00●  #FFEE00"..getPlayerName(source).."#ffffff » :#ffffff ".. tresc, gracze, 255, 255, 255, true)

	elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Everyone" ) ) then
	outputChatBox("#ffffff[ #FFEE00Local #ffffff]  ["..getElementData(source, "ID").."]  #00FF00● #05FF00 Cidadão #00FF00●  #05FF00"..getPlayerName(source).."#ffffff » :#FFFFFF "..tresc, gracze, 255, 255, 255, true)

	end
	end
	end
	end
	end
  --  setElementData (source, "ChatLocal:Delay",true)
	--setTimer (setElementData, 2000, 1, source, "ChatLocal:Delay", false)
end)

 

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...