Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/02/20 in Posts

  1. السلام عليكم ورحمة الله وبركاته اليوم حابب اقولكم اني بفتح سيرفر وشغال علي السيرفر لي 3 شهور المهم قررت افتح السيرفر بكرا الساعة 7 بتوقيت مصر , والساعة 8 بتوقيت السعودية تنوروني كلكم ان شاء الله
    1 point
  2. Hi everyone, a long time ago (novermber 2018) i started making new project called MTA Racing. This project has an own unique atmosphere legendary games such as: NFS Underground 1/2 + Midnight Club games series by Rockstar games. I am a big fun of it and we started implement it, but this project has status abandoned in april 2019. But right now i decided to finish it in free time. Now i gonna tell you more info about this. Features: Custom mapping around Los Santos, 70% remake. Custom race tracks. Tuning: Spoilers Front/Rear/Side bumbers Neon Lights Windows tinting Race modes: Circluit Sprint URL Speedtrap Top Time Drift Street-X Drag Vehicles: BMW M3 Camaro SS Audi TT Mercedes AMG Subaru Impreza Lexus IS 300 Nissan Skyline R34 Toyota Supra Mitsubishi Lancer Evo X Dodge Viper 2018 Lamborghini Huracan Mercedes E63 Audi R8 Custom OST: 60+ songs (via stream) Languages (You can send me your language and i gonna add it) Russian English Now i gonna show you some screenshots: Open beta test: IP: mtasa://51.75.147.186:22003 Groups: VK: https://vk.com/mta_race Facebook: http://fb.com/mtarace Discord: https://discord.gg/tKZtZWK
    1 point
  3. Ta ai, um sistema simples de Detran. local acl = "Detran" -- acl que tem permissão para efetuar os comandos /guinchar /soltar e pegar o carro do detran. local detran = { vtr = {}, last = {}, inUse = {}, guinchado = {}, }; function darCarro(jogador) if isPlayerInACL(jogador, acl) then if detran.inUse[jogador] ~= true then if detran.vtr[jogador] then destroyElement(detran.vtr[jogador]) detran.vtr[jogador] = nil end detran.vtr[jogador] = createVehicle(578, 1547.663, -2303.496, 13.545,-0, 0, 1.548) warpPedIntoVehicle(jogador, detran.vtr[jogador]) outputChatBox("#FFA500[Detran]:#FFFFFFVocê pegou carro do Detran", jogador, 255, 255, 255, true) else outputChatBox("#FFA500[Detran]:#FFFFFFVocê não pode pegar um novo carro do Detran", jogador, 255, 255, 255, true) end end end addEventHandler("onPickupHit", carro, darCarro) function salvar_Carro (vehicle, seat, jacked) if isPlayerInACL(source, acl) then detran.last[source] = vehicle end end addEventHandler('onPlayerVehicleEnter', getRootElement(), salvar_Carro) function guinVeh (jogador) if isPlayerInACL(jogador, acl) then local vtr = detran.vtr[jogador] local veh = detran.last[jogador] local vtrx, vtry, vtrz = getElementPosition(vtr) local vehx, vehy, vehz = getElementPosition(veh) local dist = getDistanceBetweenPoints3D(vtrx, vtry, vtrz, vehx, vehy, vehz) if (vtr) and (veh) then if dist < 5.5 then if not detran.inUse[jogador] then attachElements(veh, vtr, 0, -1, 1) detran.guinchado[jogador] = veh detran.inUse[jogador] = true outputChatBox("#FFA500[Detran]:#FFFFFFVeículo guinchado!", jogador, 255, 255, 255, true) else outputChatBox("#FFA500[Detran]:#FFFFFFVocê já guinchou um veículo!", jogador, 255, 255, 255, true) end else outputChatBox("#FFA500[Detran]:#FFFFFFAproxime o guincho do veículo!", jogador, 255, 255, 255, true) end end end end addCommandHandler("guinchar", guinVeh) function soltarVeh (jogador) if isPlayerInACL(jogador, acl) then local vtr = detran.vtr[jogador] local veh = detran.guinchado[jogador] local jogx, jogy, jogz = getElementPosition(jogador) local vtrx, vtry, vtrz = getElementPosition(vtr) local dist = getDistanceBetweenPoints3D(jogx, jogy, jogz, vtrx, vtry, vtrz) if (vtr) and (veh) then if dist < 3.5 then if detran.inUse[jogador] then detachElements(veh, vtr) detran.inUse[jogador] = false detran.guinchado[jogador] = nil outputChatBox("#FFA500[Detran]:#FFFFFFVeículo liberado!", jogador, 255, 255, 255, true) end else outputChatBox("#FFA500[Detran]:#FFFFFFAproxime-se do guincho!", jogador, 255, 255, 255, true) end end end end addCommandHandler("soltar", soltarVeh) function isPlayerInACL(player, acl) if isElement(player) and getElementType(player) == "player" and aclGetGroup(acl or "") and not isGuestAccount(getPlayerAccount(player)) then local account = getPlayerAccount(player) return isObjectInACLGroup( "user.".. getAccountName(account), aclGetGroup(acl) ) end return false end Se ocorrer algum erro, só estar comentando aqui. Não se esqueça de ativar seu debugscript (/debugscript 3). @zking0d
    1 point
  4. function checkPointFinal(hitElement, d) if isElement(hitElement) and getElementType(hitElement) == "player" and d then -- se existir o elemento e se o tipo do elemento for player e se esta na mesma dimensao do marcador if getElementData(hitElement, "checkpoint3") then destroyElement(getPedOccupiedVehicle(hitElement)) setElementVisibleTo(blip2, hitElement, false) setElementVisibleTo(blip3, hitElement, false) setElementVisibleTo(blip4, hitElement, false) setElementVisibleTo(blip5, hitElement, false) setElementVisibleTo(job2, hitElement, false) setElementVisibleTo(job3, hitElement, false) setElementVisibleTo(job4, hitElement, false) setElementVisibleTo(job5, hitElement, false) setElementData(hitElement, "checkpoint1", false) setElementData(hitElement, "checkpoint2", false) setElementData(hitElement, "checkpoint3", false) setElementData(hitElement, "checkpoint4", false) setElementData(hitElement, "jobIniciar", false) givePlayerMoney(hitElement, 500) outputChatBox("Debitados R$500,00.", hitElement, 0, 250, 0) outputChatBox("Digite /iniciar no marcador para fazer a corrida novamente.", hitElement, 0, 220, 0) setElementPosition(hitElement, 1714.3785400391, -1949.0649414063, 14.1171875) end end end addEventHandler("onMarkerHit", job5, checkPointFinal) Tente isso
    1 point
  5. -- CLIENT SIDE addCommandHandler("hide", function() local vehicle = getPedOccupiedVehicle(localPlayer) if not vehicle then return outputChatBox("ERROR: You have to sit in a vehicle!") end setVehicleComponentVisible(vehicle, "bump_front_dummy", false) setVehicleComponentVisible(vehicle, "bump_rear_dummy", false) outputChatBox("SUCCESS: Bumpers are hided!") end)
    1 point
  6. Obrigado mano vou tentar
    1 point
  7. - Crie uma tabela - Insira o veículo dentro da tabela - Use onPlayerVehicleEnter como evento. local viatura = {} -- tabela criada function salvar_Carro (vehicle, seat, jacked) viatura[source] = vehicle -- veiculo inserido end addEventHandler('onPlayerVehicleEnter', getRootElement(), salvar_Carro) -- evento de ativação!
    1 point
  8. aga = guiCreateWindow(190, 167, 881, 477, "NeadHelp :(", false) MyButton = guiCreateButton(0.4,0.8,0.1,0.07,"Hello World!",false,aga) -- guiSetVisible (aga,false) guiSetEnabled ( MyButton ,false) addEvent("Enabled",true) addEventHandler("Enabled",getRootElement(), function () if guiGetEnabled ( MyButton ) == true then guiSetEnabled ( MyButton, false ) else guiSetEnabled ( MyButton, true ) end end ) -- Server addCommandHandler("Opin", function ( ) triggerClientEvent(root,"Enabled",root ) end) جرب
    1 point
  9. Não precisa dessas condições ;p. Simplificando: local sFormat = string.format function renderTime () local time = getRealTime() local minutes = time.minute local seconds = time.second local hours = (time.hour == 0) and 12 or time.hour % 12 local ampm = (time.hour > 12) and " pm" or " am" local theTime = sFormat( "%02d:%02d:%02d", hours, minutes, seconds ) dxDrawText ( theTime..ampm, left, top, right, bottom ) -- HH:MM:SS am end addEventHandler ("onClientRender", root, renderTime)
    1 point
  10. Hello, I am Brazilian nicknamed Guto, I have no knowledge in English Redesigned the main layout of mta using the Photoshop tool I have knowledge in HTML5 and CSS3 The layout has been redesigned in a simple and clean, modern way bringing more harmony to the contained elements, maintaining the elements hierarchy and the USABILITY. ? *Just add a logo!
    1 point
×
×
  • Create New...