Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 27/10/19 in all areas

  1. https://www.youtube.com/watch?v=A3hjuNUdBio
    1 point
  2. addEventHandler ("onMarkerHit", ml, function (hitElement, matchingDimension) if (hitElement and getElementType (hitElement) == "player") then if getPlayerMoney (hitElement) >= 400 then takePlayerMoney (hitElement, 400) setElementPosition (hitElement, 733.827, -1355.561, 23.586) end end end)
    1 point
  3. Dessa forma que você fez não. addEventHandler ("onMarkerHit", ml, function (hitElement, matchingDimension) if getPlayerMoney (hitElement) >= 400 then takePlayerMoney (hitElement, 400) setElementPosition (hitElement, 733.827, -1355.561, 23.586) end end)
    1 point
  4. setElementCollisionsEnabled Mas se usar em jogadores, eles não vão conseguir andar, pois vão atravessar o chão também. Se você quer que seja possível atravessar somente mapas editados, você pode obter todos os elementos de mapas editados com getElementsByType e depois desativar a colisão dos jogadores com estes elementos usando setElementCollidableWith.
    1 point
  5. freeroam > fr_client.Lua local markerF1 = createMarker (0, 0, 0, "cylinder", 2, 0, 255, 255, 255) -- Marker do F1 addEventHandler ("onClientMarkerHit", markerF1, toggleFRWindow) -- Adicione isso ao final do arquivo.
    1 point
  6. setTimer(descongelar,3500,1,hitElement)
    1 point
  7. Você pode usar GetBoundKeys para saber quais teclas estão configuradas em cada controle. Se retornar teclas diferentes das que você quer, kicka o jogador.
    1 point
  8. I cleaned up your first function a bit. function reward(vehicle) if getElementType ( vehicle) == "vehicle" then local player = getVehicleOccupant(vehicle, 0) if player then givePlayerMoney(player, 1000) outputChatBox("Perp has been turned in and you earned $1000!", player, 0,255,0) destroyElement(source) -- destroy the marker, source of the event: addEventHandler("onMarkerHit", policem, reward) end end end function createPoliceMission () local policem = createMarker(1586,-1677,5, "cylinder", 5, 255, 0, 0, 170) addEventHandler("onMarkerHit", policem, reward) end createPoliceMission ()
    1 point
  9. function fix(source,cmd,id) if getElementData(source, "Emprego" ) == "Mecanico" then id = tonumber(id) if not id then return exports.Scripts_Dxmessages:outputDx(source, "Sintaxe: /".. cmd .." ID", "error") end local cliente = getPlayerID(id) if isElement(cliente) then if cliente == source then exports.Scripts_Dxmessages:outputDx(source, "Você não Pode Oferecer Reparos Para Você Mesmo!", "error") return end if isPedInVehicle(cliente) then local seat = getPedOccupiedVehicleSeat(cliente) if seat == 0 then local mecanico = getElementData(cliente,"cliente:mecanico") if isElement(mecanico) then exports.Scripts_Dxmessages:outputDx(source, "O Jogador "..getPlayerName(cliente).." Ja Esta Sendo Atendido Por um Mecanico!", "error") else local cx,cy,cz = getElementPosition(cliente) local x,y,z = getElementPosition(source) local dist = getDistanceBetweenPoints3D(x,y,z,cx,cy,cz) if dist <= 7 then local cmoney = getPlayerMoney(cliente) if cmoney >= ValorPorReparar then setElementData(cliente,"cliente:mecanico",source) exports.Scripts_Dxmessages:outputDx(source, "Você Ofereceu Serviços de Reparo para o Jogador "..getPlayerName(cliente), "warning") exports.Scripts_Dxmessages:outputDx(cliente, "O Mecanico "..getPlayerName(source).." Quer Reparar seu Veiculo Por $"..ValorPorReparar..", Digite /Aceitar ou /Recusar.", "warning") canceltimer[cliente] = setTimer(cancelfix,10000,1,cliente) else exports.Scripts_Dxmessages:outputDx(source, "O Jogador "..getPlayerName(cliente).." Não tem Dinheiro Suficiente!", "error") end end end else exports.Scripts_Dxmessages:outputDx(source, "O Jogador "..getPlayerName(cliente).." Não é o Motorista do Veiculo!", "error") end else exports.Scripts_Dxmessages:outputDx(source, "O Jogador "..getPlayerName(cliente).." Não Esta em um Veiculo!", "error") end else exports.Scripts_Dxmessages:outputDx(source, "O Jogador Não Foi Encontrado", "error") end end end addCommandHandler(cmd1,fix) Tenta isso
    1 point
  10. مشكور بس خلاص حليتها المشكله كان في تعريف المتغيرات نسيت احط global
    1 point
  11. https://wiki.multitheftauto.com/wiki/TestLineAgainstWater A line that detects the surface of the water. I am sure that you are creative enough to make it with that function.
    1 point
  12. سلام عليكم ورحمة الله اخواني واحبابي واصحابي ، اقدم لكم اخر كلماتي ، وان شاءالله ما احد يزعل اقولكم الوداع واقدم لكم اعتزالي ولى زعلان مني يتقبل اعتزالي ويترك اخر رده بلأخير موضوع ذا رح يجي اليوم او بكرا وما يدوم شيء بدنيه واشكر كل شخص وقف معي وانا راح ماني شايل هم احد والله ينجحكم ويقويكم الإهدادءات @Master_MTA @!#NssoR_) @#[K]iLLeR<3 @TAPL @KillerX @MR.Mosa @ععيونككء اخخر امممأليء ^ @#SnpêŘ @Tete omar @*AnGeL @iMr.WiFi..! @Abu-Solo @MR_Mahmoud @N3xT @Trefeor @Rakan# @Dr.Marco @,#Savage @KasaNoVa @#_iMr,[E]coo @Mr.Mostafa @MrKAREEM @ccz @Berko ولى ما حطيت اسمه بالله لا يزعل اسمك بالقلب يا صديق تحياتي لكم MR.TOUNSI
    1 point
  13. Tá, só não entendi a necessidade de fazer via comando.
    0 points
  14. createMarker addEventHandler onClientMarkerHit executeCommandHandler("fr")
    0 points
×
×
  • Create New...