Jump to content

Search the Community

Showing results for tags 'lua code'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 5 results

  1. function Tared (policePed,hitElement,dim) setPedAnalogControlState(policePed, "accelerate", 1) end addEvent( "Tared", true ) addEventHandler( "Tared", localPlayer, Tared ) ابي البوت يطارد الاعب الي لمس الماركر الي اسمة Marker1 هل ممكن مساعدة؟
  2. السلام عليكم ورحمة الله وبركاتة انا كنت ابي اسوي بوت اول ما المس ماركر معين يروح البوت يظهر بسيارت شرطة ويطاردني ممكن مساعدة؟
  3. Olá, estou a efetuar uma criação de servidor no estilo dayz, porém diferente dos demais presentes, preciso urgentemente de ajuda na parte de scripts, preciso de um scripter profissional em Lua urgente, pois temos muitos projetos para avançar e não consigo pelo o facto de ser preciso scripts. Caso alguém esteja interessado em nos ajudar, agradeço imenso. Obs: Todo o trabalho será pago. Deixarei disponível os contactos para quem estiver interessado a participar do nosso projeto. Obrigado. Discord: Mustang#1636 Gribix#3409 Discord
  4. eu gostaria de sincronizar meu mod policial com o de CNH, quando eu revisto o player ''X'' ele diz que ele não tem CNH ''X'' mesmo ele tendo passado no teste script do detran (não está completo) function Parte2 (source) local Hab = getElementData(source, "TS:IniciandoHAB") or "Nenhuma" if Hab == "Carro" then setElementInterior(source, 0) CarroAuto[source] = createVehicle(IDCarro, 1316.307, -1375.927, 13.361) PedInstrutor[source] = createPed(SkinPed, 1316.307, -1375.927, 13.361) setElementRotation(CarroAuto[source], -0.965, -1.163, 180.515) triggerClientEvent(source, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffVocê iniciou a prova pratica, respeite os limites!", "info") setElementVisibleTo(Marker1, source, true) setElementVisibleTo(Blip_Hab1, source, true) warpPedIntoVehicle ( source, CarroAuto[source] ) warpPedIntoVehicle ( PedInstrutor[source], CarroAuto[source], 1 ) setElementData(source, "TS:Hab", "Fase1") elseif Hab == "Moto" then setElementInterior(source, 0) CarroAuto[source] = createVehicle(IDMoto, 1316.307, -1375.927, 13.361) PedInstrutor[source] = createPed(SkinPed, 1316.307, -1375.927, 13.361) setElementRotation(CarroAuto[source], -0.965, -1.163, 180.515) triggerClientEvent(source, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffVocê iniciou a prova pratica, respeite os limites!", "info") setElementVisibleTo(Marker1, source, true) setElementVisibleTo(Blip_Hab1, source, true) warpPedIntoVehicle ( source, CarroAuto[source] ) warpPedIntoVehicle ( PedInstrutor[source], CarroAuto[source], 1 ) setElementData(source, "TS:Hab", "Fase1") elseif Hab == "Caminhao" then setElementInterior(source, 0) CarroAuto[source] = createVehicle(IDCaminhao, 1316.307, -1375.927, 13.361) PedInstrutor[source] = createPed(SkinPed, 1316.307, -1375.927, 13.361) setElementRotation(CarroAuto[source], -0.965, -1.163, 180.515) triggerClientEvent(source, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffVocê iniciou a prova pratica, respeite os limites!", "info") setElementVisibleTo(Marker1, source, true) setElementVisibleTo(Blip_Hab1, source, true) warpPedIntoVehicle ( source, CarroAuto[source] ) warpPedIntoVehicle ( PedInstrutor[source], CarroAuto[source], 1 ) setElementData(source, "TS:Hab", "Fase1") elseif Hab == "Carretas" then setElementInterior(source, 0) CarroAuto[source] = createVehicle(IDCarreta, 1316.68, -1388.448, 14.459) setTimer(function() CargaCarreta[source] = createVehicle(IDCarga, 1316.088, -1377.502, 14.276) setElementRotation(CargaCarreta[source], 0, 0, 180) end, 500, 1) PedInstrutor[source] = createPed(SkinPed, 1316.307, -1375.927, 13.361) setElementRotation(CarroAuto[source], -0.965, -1.163, 180.515) triggerClientEvent(source, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffVocê iniciou a prova pratica, pegue a carga!", "info") setElementVisibleTo(Marker1, source, true) setElementVisibleTo(Blip_Hab1, source, true) warpPedIntoVehicle ( source, CarroAuto[source] ) warpPedIntoVehicle ( PedInstrutor[source], CarroAuto[source], 1 ) setElementData(source, "TS:Hab", "Fase1") end end addEvent ( "TS:Parte2", true ) addEventHandler ( "TS:Parte2", root, Parte2 ) function ChegangoNoMarker (source) local Verificacao = getElementData(source, "TS:Hab") or "Nenhuma" if Verificacao == "Fase1" then triggerClientEvent(source, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffVa para o proximo checkpoint", "info") setElementData(source, "TS:Hab", "Fase2") setElementVisibleTo(Marker1, source, false) setElementVisibleTo(Blip_Hab1, source, false) setElementVisibleTo(Marker2, source, true) setElementVisibleTo(Blip_Hab2, source, true) local Hab2 = getElementData(source, "TS:IniciandoHAB") or "Nenhuma" if Hab2 == "Carretas" then if not ( getVehicleTowedByVehicle ( CarroAuto[source] ) == CargaCarreta[source] ) then destroyElement(CarroAuto[source]) destroyElement(CargaCarreta[source]) destroyElement(PedInstrutor[source]) setElementVisibleTo(Marker2, source, false) setElementVisibleTo(Blip_Hab2, source, false) setElementData(source, "TS:Hab", nil) triggerClientEvent(source, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffVocê tentou burlar o sistema e foi reprovado!", "info") end end end end script policial function Revistar (source) local Jogador = getElementData(source, "TS:Abordando") if Jogador then setPedAnimation( source, "POLICE", "plc_drgbst_01", 3100, true, false, false, false) triggerClientEvent(Jogador, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffO Policial está te revistando!", "info") if getPlayerWantedLevel(Jogador) >= 1 then outputChatBox("#0037FF✘#ffffffINFO#0037FF✘➺ #ffffff O jogador está pedido!",source,255,0,0,true) else outputChatBox("#0037FF✘#ffffffINFO#0037FF✘➺ #ffffff O jogador não está pedido!",source,255,0,0,true) end if getElementData(Jogador,"DNL:Categoria(A)") == true then outputChatBox("#0037FF✘#ffffffINFO#0037FF✘➺ #ffffff O jogador tem Habilitação A!",source,255,0,0,true) else outputChatBox("#0037FF✘#ffffffINFO#0037FF✘➺ #ffffff O jogador não tem Habilitação A!",source,255,0,0,true) end if getElementData(Jogador,"DNL:Categoria(B)") == true then outputChatBox("#0037FF✘#ffffffINFO#0037FF✘➺ #ffffff O jogador tem Habilitação B!",source,255,0,0,true) else outputChatBox("#0037FF✘#ffffffINFO#0037FF✘➺ #ffffff O jogador não tem Habilitação B!",source,255,0,0,true) end if getElementData(Jogador,"DNL:Categoria(C)") == true then outputChatBox("#0037FF✘#ffffffINFO#0037FF✘➺ #ffffff O jogador tem Habilitação C!",source,255,0,0,true) else outputChatBox("#0037FF✘#ffffffINFO#0037FF✘➺ #ffffff O jogador não tem Habilitação C!",source,255,0,0,true) end if getElementData(Jogador,"DNL:Categoria(D)") == true then outputChatBox("#0037FF✘#ffffffINFO#0037FF✘➺ #ffffff O jogador tem Habilitação D!",source,255,0,0,true) else outputChatBox("#0037FF✘#ffffffINFO#0037FF✘➺ #ffffff O jogador não tem Habilitação D!",source,255,0,0,true) end if getElementData(Jogador,"DNL:Categoria(E)") == true then outputChatBox("#0037FF✘#ffffffINFO#0037FF✘➺ #ffffff O jogador tem Habilitação E!",source,255,0,0,true) else outputChatBox("#0037FF✘#ffffffINFO#0037FF✘➺ #ffffff O jogador não tem Habilitação E!",source,255,0,0,true) end local Quantidade = getElementData(source, "TS:"..Droga_Selecionada.."") or 0 for slot = 0, 12 do local Armamento = getPedWeapon ( Jogador, slot ) if Armamento > 0 then local NomeDaArma = getWeaponNameFromID ( Armamento ) outputChatBox("#0037FF✘#ffffffINFO#0037FF✘➺ #ffffff O jogador tem "..NomeDaArma.."!",source,255,0,0,true) end end end end addEvent("TS:Revistar", true) addEventHandler("TS:Revistar", root, Revistar)
  5. لو سمحتوا عايز احل مشكلة الكود ده انا عايز لما ادخل الماركر تظهر الكلمة دى cartMarker = createMarker(-30.39682, -57.36082, 1002.2, "cylinder", 1, 255, 255, 0, 200) setElementInterior(cartMarker, 6) addEventHandler("onMarkerHit", cartMarker, function () outputChatBox("Done!", source, 255, 255, 0) end )
×
×
  • Create New...