Jump to content

FlavioDFG

Members
  • Posts

    9
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

FlavioDFG's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. Ja tentei procurar e achei, mas nenhum funciona se poder me ajudar porfavor
  2. --[[ ################################################ # # # # # # # # # ################################################ --]] -------------------------------------------------------------------------------------------- DistanciaDoChatLocal = 200 -- Metros --MensagemFalandoRapidoDemaisLocal = '#ffffff[ #CE98EBAnti Flood #ffffff] - #ffffffVocê Esta Digitando Muito Rapido, Aguarde 2 Segundos' ComandoDoChatGlobal = "rp" -- Ex /g Mensagem ComandoDoChatGlobal2 = "frp" ValorDoChatGlobal = 0 -- Dinheiro --MensagemFalandoRapidoDemaisGlobal = '#ffffff[ #FF0000Anti Flood #ffffff] - #ffffffVocê Esta Digitando Muito Rapido, Aguarde 5 Segundos' MensagemVoceEstaMutadoGlobal2 = '#ffffff[ #FF0000Aviso #ffffff] - #FF0000Você Esta Mutado, e Não Podera Utilizar os Chat do Servidor' MensagemVoceEstaMutadoGlobal = '#ffffff[ #FF0000Aviso #ffffff] - #FF0000Você Esta Mutado, e Não Podera Utilizar os Chat do Servidor' -------------------------------------------------------------------------------------------- -- 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 ( "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) -------------------------------------------------------------------------------------------- -- Config do Chat Global function adminchat ( thePlayer, _, ... ) local message = table.concat ( { ... }, " " ) if ( isPlayerOnGroup ( thePlayer ) ) then for _, player in ipairs ( getElementsByType ( "player" ) ) do if ( isPlayerOnGroup ( player ) ) then if ( isPlayerMuted(thePlayer) ) then outputChatBox ( MensagemVoceEstaMutadoGlobal, thePlayer, 255, 255, 255, true ) return end -- if getElementData (thePlayer, "ChatGlobal:Delay1", true) then -- outputChatBox ( MensagemFalandoRapidoDemaisGlobal, thePlayer, 255, 255, 255, true ) return end --local money = getPlayerMoney(thePlayer) --if (money < ValorDoChatGlobal ) then --outputChatBox ( MensagemDinheiroInsuficienteGlobal, thePlayer, 255, 255, 255, true ) return end conta = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup ("user."..conta, aclGetGroup ( "Console" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #00ff8cPresidente #00FF00● #00ff8c"..getPlayerName(thePlayer).. "#00FA9A » :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Admin" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #ff6600Vice Presidente #00FF00● #ff6600"..getPlayerName(thePlayer).."#A914F9 » :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Humanos" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #00ffedAdm Corp/Gang #00FF00● #00ffed"..getPlayerName(thePlayer).."#A914F9 » :#FFffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "SuperModerator" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp] ["..getElementData(thePlayer, "ID").."] #00FF00● #00ffedDeputado Estadual #00FF00● #00ffed"..getPlayerName(thePlayer).."#A914F9 » :#FFffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Moderator" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #00ffedVereador #00FF00● #00ffed"..getPlayerName(thePlayer).."#A914F9 » :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "BOPE" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #000000 BOPE #00FF00● #000000"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "CHOQUE" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #635f5f CHOQUE #00FF00● #635f5f"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "COE" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #228B22 C O E #00FF00● #228B22"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "ROTA" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #838B83 ROTA #00FF00● #838B83"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "BAEP" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #838B83 BAEP #00FF00● #838B83"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "PF" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #E47833 Policia Federal #00FF00● #E47833"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "PETO" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #000000 PETO #00FF00● #000000"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "ROCAM" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #Ff0000 ROCAM #00FF00● #Ff0000"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "CBV" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #Ff0000 Comando Bala Voa #00FF00● #FF0000"..getPlayerName(thePlayer).."#ffffff » :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "CV" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #Ff0000 Comando Vermelho #00FF00● #Ff0000"..getPlayerName(thePlayer).."#ffffff » :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "TCP" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #FFFF00Terceiro Comando Puro #00FF00● #FfFF00"..getPlayerName(thePlayer).."#ffffff » :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "ANS" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #000000 Anonymous #00FF00● #000000"..getPlayerName(thePlayer).."#ffffff » :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "OG" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #8A2BE2 Os Guri #00FF00● #8A2BE2"..getPlayerName(thePlayer).."#ffffff » :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "UBER" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #838B83 UBER #00FF00● #838B83"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Designer" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #0000FF● Designer ● #FFFFFF"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) ---------------------------------------------------------------------------------------- elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Omega" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #00FF00 VIP OMEGA #00FF00● #00FF00"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Sigma" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #00FF00 VIP SIGMA #00FF00● #00FF00"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Epsylon" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #00FF00 VIP EPSYLON #00FF00● #00FF00"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Alpha" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #00FF00 VIP ALPHA #00FF00● #00FF00"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) ---------------------------------------------------------------------------------------- elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "VIP" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #00FF00 VIP #00FF00● #00FF00"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Mecanico" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #228B22 Mecanico #00FF00● #228B22"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "SAMU" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #Ff0000 SAMU #00FF00● #Ff0000"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "GIRL" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #FF00F6 Garotas De Programa #00FF00● #FF00F6"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Ajudante" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #FFEE00 Ajudante #00FF00● #FFEE00"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Everyone" ) ) then outputChatBox("#ffffff[ #4AAFFBDentro do RP #ffffff] [#97FB4A/rp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #05FF00 Cidadão #00FF00● #05FF00"..getPlayerName(thePlayer).."#ffffff » :#ffffff "..message, player, 255, 255, 255, true) end end end end if not getElementData( thePlayer, "ChatGlobal:Avisado", true ) then --outputChatBox ( AvisoDoValorDaMensagemGlobal, thePlayer, 255, 255, 255, true ) end setElementData ( thePlayer, "ChatGlobal:Avisado", true ) --takePlayerMoney ( thePlayer, ValorDoChatGlobal ) -- setElementData ( thePlayer, "ChatGlobal:Delay1",true ) -- setTimer ( setElementData, 0, 1, thePlayer, "ChatGlobal:Delay1", false ) end addCommandHandler ( ComandoDoChatGlobal, adminchat ) function adminchat2 ( thePlayer, _, ... ) local message = table.concat ( { ... }, " " ) if ( isPlayerOnGroup ( thePlayer ) ) then for _, player in ipairs ( getElementsByType ( "player" ) ) do if ( isPlayerOnGroup ( player ) ) then if ( isPlayerMuted(thePlayer) ) then outputChatBox ( MensagemVoceEstaMutadoGlobal2, thePlayer, 255, 255, 255, true ) return end -- if getElementData (thePlayer, "ChatGlobal:Delay1", true) then -- outputChatBox ( MensagemFalandoRapidoDemaisGlobal, thePlayer, 255, 255, 255, true ) return end --local money = getPlayerMoney(thePlayer) --if (money < ValorDoChatGlobal ) then --outputChatBox ( MensagemDinheiroInsuficienteGlobal, thePlayer, 255, 255, 255, true ) return end conta = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup ("user."..conta, aclGetGroup ( "Console" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #00ff8cPresidente #00FF00● #00ff8c"..getPlayerName(thePlayer).. "#00FA9A » :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Admin" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #ff6600Vice Presidente #00FF00● #ff6600"..getPlayerName(thePlayer).."#A914F9 » :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Humanos" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #00ffedAdm Corp/Gang #00FF00● #00ffed"..getPlayerName(thePlayer).."#A914F9 » :#FFffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "SuperModerator" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #00ffedDeputado Estadual #00FF00● #00ffed"..getPlayerName(thePlayer).."#A914F9 » :#FFffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Moderator" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #00ffedVereador #00FF00● #00ffed"..getPlayerName(thePlayer).."#A914F9 » :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "BOPE" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #000000 BOPE #00FF00● #000000"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "CHOQUE" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #635f5f CHOQUE #00FF00● #635f5f"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "COE" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #228B22 C O E #00FF00● #228B22"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "ROTA" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #838B83 ROTA #00FF00● #838B83"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "BAEP" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #838B83 BAEP #00FF00● #838B83"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "PF" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #E47833 Policia Federal #00FF00● #E47833"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "ROCAM" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #Ff0000 ROCAM #00FF00● #Ff0000"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "PETO" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #000000 PETO #00FF00● #000000"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "CBV" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #Ff0000 Comando Bala Voa #00FF00● #FF0000"..getPlayerName(thePlayer).."#ffffff » :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "CV" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #Ff0000 Comando Vermelho #00FF00● #Ff0000"..getPlayerName(thePlayer).."#ffffff » :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "TCP" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #FFFF00Terceiro Comando Puro #00FF00● #FfFF00"..getPlayerName(thePlayer).."#ffffff » :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "TCP" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #000000 Anonymous #00FF00● #000000"..getPlayerName(thePlayer).."#ffffff » :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "OG" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #8A2BE2 Os Guri #00FF00● #8A2BE2"..getPlayerName(thePlayer).."#ffffff » :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "UBER" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #838B83 UBER #00FF00● #838B83"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Designer" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #0000FF● Designer ● #FFFFFF"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) ---------------------------------------------------------------------------------------- elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Omega" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #00FF00 VIP OMEGA #00FF00● #00FF00"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Sigma" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #00FF00 VIP SIGMA #00FF00● #00FF00"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Epsylon" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #00FF00 VIP EPSYLON #00FF00● #00FF00"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Alpha" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #00FF00 VIP ALPHA #00FF00● #00FF00"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) ---------------------------------------------------------------------------------------- elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "VIP" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #00FF00 VIP #00FF00● #00FF00"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Mecanico" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #228B22 Mecanico #00FF00● #228B22"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "SAMU" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #Ff0000 SAMU #00FF00● #Ff0000"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "GIRL" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #FF00F6 Garotas De Programa #00FF00● #FF00F6"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Ajudante" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #FFEE00 Ajudante #00FF00● #FFEE00"..getPlayerName(thePlayer).."#ffffff » :#ffffff ".. message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Everyone" ) ) then outputChatBox("#ffffff[ #B6D654Fora do RP #ffffff] [#FBCB49/frp#ffffff] ["..getElementData(thePlayer, "ID").."] #00FF00● #05FF00 Cidadão #00FF00● #05FF00"..getPlayerName(thePlayer).."#ffffff » :#ffffff "..message, player, 255, 255, 255, true) end end end end if not getElementData( thePlayer, "ChatGlobal:Avisado", true ) then --outputChatBox ( AvisoDoValorDaMensagemGlobal, thePlayer, 255, 255, 255, true ) end setElementData ( thePlayer, "ChatGlobal:Avisado", true ) --takePlayerMoney ( thePlayer, ValorDoChatGlobal ) -- setElementData ( thePlayer, "ChatGlobal:Delay1",true ) -- setTimer ( setElementData, 0, 1, thePlayer, "ChatGlobal:Delay1", false ) end addCommandHandler ( ComandoDoChatGlobal2, adminchat2 ) -------------------------------------------------------------------------------------------- function isPlayerOnGroup ( thePlayer ) local account = getPlayerAccount ( thePlayer ) local inGroup = false for _, group in ipairs ( { "Everyone" } ) do if isObjectInACLGroup ( "user.".. getAccountName ( account ), aclGetGroup ( group ) ) then inGroup = true break end end return inGroup end -------------------------------------------------------------------------------------------- Tipo esse só que inves de escrever /frp e os comandos só apertar uma tecla
  3. n foi @DNL291 Continua sem acontecer nada @DNL291
  4. Assim? addCommandHandler( "clipboard", -- add a command handler for the command function( command, ... ) local text = table.concat({...}, " ") -- if the text has spaces this will turn it into a string local success = setClipboard( text ) -- set the clipboard and find out if it worked if success then outputChatBox( "Clipboard text set to: " .. text, 0, 255, 0 ) -- if it did, tell the player else outputChatBox( "Failed to set the clipboards text", 255, 0, 0 ) -- if it didn't, tell the player end end ) Peguei da Wiki MTA Tentei e não foi A Meta é assim? <meta> <script src="discord.Lua" type="server"/> </meta> @DNL291
  5. Olá gostaria de saber como faz um script ou algum comando para qnd alguem der /dc um texto seja copiado e depois é so dar Ctrl +V no google para entrar no discord https://discord.gg/y5uZFhw
  6. Olá gostaria de saber se tem como o player não nascer dentro do veiculo e sim ao lado "x+3" --[[ ################################################ # # # Script Criado Por # # FACEBOOK.COM/AIRNEWSCR # # # # # ################################################ --]] Veiculo_VIPs = {} Grupo_01 = "Alpha" VIP_Alpha_ID_Veiculo_01 = 451 VIP_Alpha_Pack_de_Armas_01 = { 1, 22, 22, 25 } VIP_Alpha_Personagem_01 = 112 Grupo_02 = "Epsylon" VIP_Epsylon_ID_Veiculo_01 = 451 VIP_Epsylon_ID_Veiculo_02 = 522 VIP_Epsylon_Pack_de_Armas_01 = { 29, 32, 1, 22 } VIP_Epsylon_Personagem_01 = 33 VIP_Epsylon_Personagem_02 = 34 VIP_Epsylon_Vida = 100 Grupo_03 = "Sigma" VIP_Sigma_ID_Veiculo_01 = 541 VIP_Sigma_ID_Veiculo_02 = 522 VIP_Sigma_Pack_de_Armas_01 = { 30, 24, 4, 34 } VIP_Sigma_Pack_de_Armas_02 = { 29, 32, 1, 22 } VIP_Sigma_Personagem_01 = 29 VIP_Sigma_Personagem_02 = 30 VIP_Sigma_Personagem_03 = 32 VIP_Sigma_Vida = 100 VIP_Sigma_Colete = 50 Grupo_04 = "Omega" VIP_Omega_ID_Veiculo_01 = 411 VIP_Omega_ID_Veiculo_02 = 522 VIP_Omega_Pack_de_Armas_01 = { 31, 24, 4, 34, 26, 34 } VIP_Omega_Pack_de_Armas_02 = { 29, 32, 1, 22, 30, 16, 46 } VIP_Omega_Personagem_01 = 26 VIP_Omega_Personagem_02 = 27 VIP_Omega_Personagem_03 = 28 VIP_Omega_Vida = 100 VIP_Omega_Colete = 100 function Receber_Client_AirNewSCR ( Tipo, VIP, ID ) if Tipo == "Veiculo(s)" then local Jogador_X, Jogador_Y, Jogador_Z = getElementPosition ( source ) local Rotacao_X, Rotacao_Y, Rotacao_Z = getElementRotation ( source ) if isElement ( Veiculo_VIPs[source] ) then destroyElement ( Veiculo_VIPs[source] ) end if VIP == "Alpha" and ID == 1 then Veiculo_VIPs[source] = createVehicle ( VIP_Alpha_ID_Veiculo_01, Jogador_X, Jogador_Y, Jogador_Z ) elseif VIP == "Epsylon" and ID == 1 then Veiculo_VIPs[source] = createVehicle ( VIP_Epsylon_ID_Veiculo_01, Jogador_X, Jogador_Y, Jogador_Z ) elseif VIP == "Epsylon" and ID == 2 then Veiculo_VIPs[source] = createVehicle ( VIP_Epsylon_ID_Veiculo_02, Jogador_X, Jogador_Y, Jogador_Z ) elseif VIP == "Sigma" and ID == 1 then Veiculo_VIPs[source] = createVehicle ( VIP_Sigma_ID_Veiculo_01, Jogador_X, Jogador_Y, Jogador_Z ) elseif VIP == "Sigma" and ID == 2 then Veiculo_VIPs[source] = createVehicle ( VIP_Sigma_ID_Veiculo_02, Jogador_X, Jogador_Y, Jogador_Z ) elseif VIP == "Omega" and ID == 1 then Veiculo_VIPs[source] = createVehicle ( VIP_Omega_ID_Veiculo_01, Jogador_X, Jogador_Y, Jogador_Z ) elseif VIP == "Omega" and ID == 2 then Veiculo_VIPs[source] = createVehicle ( VIP_Omega_ID_Veiculo_02, Jogador_X, Jogador_Y, Jogador_Z ) end setElementRotation ( Veiculo_VIPs[source], Rotacao_X, Rotacao_Y, Rotacao_Z ) warpPedIntoVehicle ( source, Veiculo_VIPs[source] ) exports.Scripts_Dxmessages:outputDx ( source, "Veiculo VIP "..VIP.." Criado com Sucesso!", "success" ) elseif Tipo == "Arma(s)" then if VIP == "Alpha" and ID == 1 then if getElementData ( source, "Alpha_Arma(s)" ) == "Bloqueado" then exports.Scripts_Dxmessages:outputDx ( source, "Você está bloqueado de usar está opção Temporariamente! [1 Minuto]", "warning" ) else setElementData ( source, "Alpha_Arma(s)", "Bloqueado" ) -- 1 Minuto for _, Armas in ipairs ( VIP_Alpha_Pack_de_Armas_01 ) do giveWeapon ( source, Armas, 999 ) end exports.Scripts_Dxmessages:outputDx ( source, "Você Recebeu o Pack de Arma(s) do VIP "..VIP.." com Sucesso!", "success" ) setTimer ( setElementData, 60000, 1, source, "Alpha_Arma(s)", "Desbloqueado" ) end elseif VIP == "Epsylon" and ID == 1 then if getElementData ( source, "Epsylon_Arma(s)" ) == "Bloqueado" then exports.Scripts_Dxmessages:outputDx ( source, "Você está bloqueado de usar está opção Temporariamente! [10 Segundo(s)]", "warning" ) else setElementData ( source, "Epsylon_Arma(s)", "Bloqueado" ) -- 10 Segundos for _, Armas in ipairs ( VIP_Epsylon_Pack_de_Armas_01 ) do giveWeapon ( source, Armas, 999 ) end exports.Scripts_Dxmessages:outputDx ( source, "Você Recebeu o Pack de Arma(s) do VIP "..VIP.." com Sucesso!", "success" ) setTimer ( setElementData, 10000, 1, source, "Epsylon_Arma(s)", "Desbloqueado" ) end elseif VIP == "Sigma" and ID == 1 then for _, Armas in ipairs ( VIP_Sigma_Pack_de_Armas_01 ) do giveWeapon ( source, Armas, 999 ) end elseif VIP == "Sigma" and ID == 2 then for _, Armas in ipairs ( VIP_Sigma_Pack_de_Armas_02 ) do giveWeapon ( source, Armas, 999 ) end elseif VIP == "Omega" and ID == 1 then for _, Armas in ipairs ( VIP_Omega_Pack_de_Armas_01 ) do giveWeapon ( source, Armas, 999 ) end elseif VIP == "Omega" and ID == 2 then for _, Armas in ipairs ( VIP_Omega_Pack_de_Armas_02 ) do giveWeapon ( source, Armas, 999 ) end end if getElementData ( source, "Alpha_Arma(s)" ) == "Bloqueado" or getElementData ( source, "Epsylon_Arma(s)" ) == "Bloqueado" then return end exports.Scripts_Dxmessages:outputDx ( source, "Você Recebeu o Pack de Arma(s) do VIP "..VIP.." com Sucesso!", "success" ) elseif Tipo == "Skin(s)" then if VIP == "Alpha" and ID == 1 then setElementModel ( source, VIP_Alpha_Personagem_01 ) elseif VIP == "Epsylon" and ID == 1 then setElementModel ( source, VIP_Epsylon_Personagem_01 ) elseif VIP == "Epsylon" and ID == 2 then setElementModel ( source, VIP_Epsylon_Personagem_02 ) elseif VIP == "Sigma" and ID == 1 then setElementModel ( source, VIP_Sigma_Personagem_01 ) elseif VIP == "Sigma" and ID == 2 then setElementModel ( source, VIP_Sigma_Personagem_02 ) elseif VIP == "Sigma" and ID == 3 then setElementModel ( source, VIP_Sigma_Personagem_03 ) elseif VIP == "Omega" and ID == 1 then setElementModel ( source, VIP_Omega_Personagem_01 ) elseif VIP == "Omega" and ID == 2 then setElementModel ( source, VIP_Omega_Personagem_02 ) elseif VIP == "Omega" and ID == 3 then setElementModel ( source, VIP_Omega_Personagem_03 ) end exports.Scripts_Dxmessages:outputDx ( source, "Personagem VIP "..VIP.." ID "..ID.." Setado com Sucesso!", "success" ) elseif Tipo == "Vida" then if VIP == "Epsylon" and ID == 1 then if getElementData ( source, "Epsylon_Vida" ) == "Bloqueado" then exports.Scripts_Dxmessages:outputDx ( source, "Você está bloqueado de usar está opção Temporariamente! [2 Minuto(s)]", "warning" ) else if getElementHealth ( source ) < VIP_Epsylon_Vida then setElementData ( source, "Epsylon_Vida", "Bloqueado" ) -- 2 Minuto(s) setElementHealth ( source, VIP_Epsylon_Vida ) exports.Scripts_Dxmessages:outputDx ( source, "Sua Vida foi Alterada para "..VIP_Epsylon_Vida.."% com Sucesso!", "success" ) setTimer ( setElementData, 120000, 1, source, "Epsylon_Vida", "Desbloqueado" ) else exports.Scripts_Dxmessages:outputDx ( source, "Você já está com mais de "..VIP_Epsylon_Vida.."% de Vida!", "error" ) end end elseif VIP == "Sigma" and ID == 1 then if getElementData ( source, "Sigma_Vida" ) == "Bloqueado" then exports.Scripts_Dxmessages:outputDx ( source, "Você está bloqueado de usar está opção Temporariamente! [2 Minuto(s)]", "warning" ) else if getElementHealth ( source ) < VIP_Sigma_Vida then setElementData ( source, "Sigma_Vida", "Bloqueado" ) -- 2 Minuto(s) setElementHealth ( source, VIP_Sigma_Vida ) exports.Scripts_Dxmessages:outputDx ( source, "Sua Vida foi Alterada para "..VIP_Sigma_Vida.."% com Sucesso!", "success" ) setTimer ( setElementData, 120000, 1, source, "Sigma_Vida", "Desbloqueado" ) else exports.Scripts_Dxmessages:outputDx ( source, "Você já está com "..VIP_Sigma_Vida.."% de Vida!", "error" ) end end elseif VIP == "Omega" and ID == 1 then if getElementHealth ( source ) < VIP_Omega_Vida then setElementHealth ( source, VIP_Omega_Vida ) exports.Scripts_Dxmessages:outputDx ( source, "Sua Vida foi Alterada para "..VIP_Omega_Vida.."% com Sucesso!", "success" ) else exports.Scripts_Dxmessages:outputDx ( source, "Você já está com "..VIP_Omega_Vida.."% de Vida!", "error" ) end end elseif Tipo == "Colete" then if VIP == "Sigma" and ID == 1 then if getPedArmor ( source ) < VIP_Sigma_Colete then setPedArmor ( source, VIP_Sigma_Colete ) exports.Scripts_Dxmessages:outputDx ( source, "Seu Colete foi Alterado para "..VIP_Sigma_Colete.."% com Sucesso!", "success" ) else exports.Scripts_Dxmessages:outputDx ( source, "Você já está com mais de "..VIP_Sigma_Colete.."% de Colete!", "error" ) end elseif VIP == "Omega" and ID == 1 then if getPedArmor ( source ) < VIP_Omega_Colete then setPedArmor ( source, VIP_Omega_Colete ) exports.Scripts_Dxmessages:outputDx ( source, "Seu Colete foi Alterado para "..VIP_Omega_Colete.."% com Sucesso!", "success" ) else exports.Scripts_Dxmessages:outputDx ( source, "Você já está com "..VIP_Omega_Colete.."% de Colete!", "error" ) end end elseif Tipo == "Blindagem" then if VIP == "Omega" and ID == 1 then if isPedInVehicle ( source ) then if isVehicleDamageProof ( getPedOccupiedVehicle ( source ) ) == false then setVehicleDamageProof ( getPedOccupiedVehicle ( source ), true ) exports.Scripts_Dxmessages:outputDx ( source, "Você Aplicou Blindagem no Seu Veiculo Atual com Sucesso!", "success") else exports.Scripts_Dxmessages:outputDx ( source, "O Veiculo que você está atualmente já está Blindado!", "error") end else exports.Scripts_Dxmessages:outputDx ( source, "Entre em um Veiculo para utilizar esta função!", "error") end end elseif Tipo == "Mensagem" then if VIP == "Sigma" or VIP == "Omega" then if ID then exports.Scripts_Dxmessages:outputDx ( source, ID, "info") end end end end addEvent ( "AirNewSCR_EnviarServidor", true ) addEventHandler ( "AirNewSCR_EnviarServidor", getRootElement ( ), Receber_Client_AirNewSCR ) function Sair_do_Servidor_AirNewSCR ( quitType ) if isElement ( Veiculo_VIPs[source] ) then destroyElement ( Veiculo_VIPs[source] ) end end addEventHandler ( "onPlayerQuit", getRootElement ( ), Sair_do_Servidor_AirNewSCR ) function Morrer_no_Servidor_AirNewSCR ( ) if isElement ( Veiculo_VIPs[source] ) then destroyElement ( Veiculo_VIPs[source] ) end end addEventHandler( "onPlayerWasted", getRootElement( ), Morrer_no_Servidor_AirNewSCR ) function Verificar_VIP_AirNewSCR ( ) for i, player in ipairs ( getElementsByType ( "player" ) ) do local acc = getPlayerAccount ( player ) if acc and not isGuestAccount ( acc ) then local accName = getAccountName (acc) if isObjectInACLGroup ("user."..accName, aclGetGroup ( Grupo_01 ) ) then setElementData ( player, "VIP_01", "Sim" ) else setElementData ( player, "VIP_01", "Não" ) end if isObjectInACLGroup ("user."..accName, aclGetGroup ( Grupo_02 ) ) then setElementData ( player, "VIP_02", "Sim" ) else setElementData ( player, "VIP_02", "Não" ) end if isObjectInACLGroup ("user."..accName, aclGetGroup ( Grupo_03 ) ) then setElementData ( player, "VIP_03", "Sim" ) else setElementData ( player, "VIP_03", "Não" ) end if isObjectInACLGroup ("user."..accName, aclGetGroup ( Grupo_04 ) ) then setElementData ( player, "VIP_04", "Sim" ) else setElementData ( player, "VIP_04", "Não" ) end end end end setTimer ( Verificar_VIP_AirNewSCR, 1500, 0 )
  7. Tente isso Testado e funcionando veh = {} vehCol = {} function veiculodayz (thePlayer) local accountname = getAccountName (getPlayerAccount (thePlayer)) -- accountname recebe o nome da conta do jogador que usou o comando. if isObjectInACLGroup ("user."..accountname, aclGetGroup ("CarroEnder")) then -- Se o nome da conta estiver na ACL Group Admin, então: local x, y, z = getElementPosition (thePlayer) -- x, y, z recebem a posição do jogador que usou o comando. if isElement (veh[thePlayer]) then -- Se já existe o veh[thePlayer] criado, então: spawnVehicle (veh[thePlayer], x+3, y, z) -- Spawna ele perto do jogador, sem criar outro. setElementData (vehCol[thePlayer], "parent", veh[thePlayer]) -- Reseta as datas do colider. setElementData (veh[thePlayer], "parent", vehCol[thePlayer]) setElementData (vehCol[thePlayer], "vehicle", true) setElementData (vehCol[thePlayer], "Tire_inVehicle", 4) setElementData (vehCol[thePlayer], "Engine_inVehicle", 1) setElementData (vehCol[thePlayer], "Parts_inVehicle", 1) setElementData (vehCol[thePlayer], "fuel", 100) else -- Se não existe um veh[thePlayer] criado, então: veh[thePlayer] = createVehicle (506, x+3, y, z) -- Cria o veh[thePlayer]. setVehicleColor (veh[thePlayer], 255, 255, 255) -- escolhe a cor do veiculo if isElement (vehCol[thePlayer]) then -- Se já existe o colider (veículo foi deletado e o colider ficou lá), então: attachElements (vehCol[thePlayer], veh[thePlayer], 0, 0, 0) -- Anexa o colider novamente ao veh[thePlayer]. else -- Se não existe colider nenhum, então: vehCol[thePlayer] = createColSphere (x, y, z, 2.5) -- Cria o colider. attachElements (vehCol[thePlayer], veh[thePlayer], 0, 0, 0) -- Anexa ele ao veh[thePlayer]. setElementData (vehCol[thePlayer], "parent", veh[thePlayer]) -- Seta as datas no veh[thePlayer] e no colider. setElementData (veh[thePlayer], "parent", vehCol[thePlayer]) setElementData (vehCol[thePlayer], "vehicle", true) setElementData (vehCol[thePlayer], "Tire_inVehicle", 4) setElementData (vehCol[thePlayer], "Engine_inVehicle", 1) setElementData (vehCol[thePlayer], "Parts_inVehicle", 1) setElementData (vehCol[thePlayer], "fuel", 100) end end end end addCommandHandler ("meucarro", veiculodayz) addEventHandler("onPlayerQuit", root, function() if (veh[source] and isElement(veh[source])) then destroyElement(veh[source]) end end )
  8. Mas, como faz para depois o veiculo despawnar ?????
  9. Olá Bom dia Eu gostaria de saber como fazer um script de Chats como local Fora do RP Twitter e DarkWeb E esses chats com tags e que sejam usados com o apertar de tecla diferente Ex: t: LocalChat / y:ForadoRP / u:Twitter / i:DarkWeb Obs:DarkWeb com o nome oculto Se alguém poder me ajudar agradeço
×
×
  • Create New...