Jump to content

Search the Community

Showing results for tags 'markers'.

  • 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 15 results

  1. Alguem Teria um script que é só um Marker mais se eu tiver com acl pm spawnar uma vtr e se eu tiver com a acl samu spawn uma vtr da samu no mesmo marker ?
  2. hi guys i want call marker from another function like this code local hidemark = createMarker(10,50,5,"cylinder",1,0,255,0) function mark(theplayer) markerveh =createMarker(0,0,5,"cylinder",1,0,255,0) end addEventHandler("onMarkerHit",marker1,mark) function job1(theplayer) setElementVisibleTo(markerveh,root,false)-- for here end addCommandHandler("hidemark",job1)
  3. --- Server ----- local marker123 = createMarker(589.438, 870.218, -42.497, 'cylinder', 1.0, 30, 144, 255, 150) function marker123(markerHit) setElementData ( source, "Emprego", "Mineirador" ) outputChatBox("/infos para marcar os markers",source,255,255,0) -- Output that they are. end addEventHandler("onPlayerMarkerHit",getRootElement(),marker123) outputchatbox aparecendo em todos os markers do server, alguma ideia de como corrigir?
  4. Ola, tou criando uma resource de entregador de jornal, vi muitas na internet mais quero criar minha propria resource, criei um marker onde que se eu digitar dentro dele /jornaleiro automaticamente cria um blip no mapa junto com um marcador até ai tudo certo, neste proximo marcador é um marcador local criado pelo proprio player, quando eu entro nele coloquei a funcao de aparecer algo no chat e esta tudo certo e adicionei tambem uma funcao que quando o player sai do marcador apareça uma msg dizendo que ele ignorou a vaga, e aparece normal mais a unica coisa que nao esta dando certo é o marcador se destruir sozinho... vou mostrar o codigo pra vocês... local blipJornal = nil local markerjornal = nil -- Funcao comando /jornaleiro --- function _AgenciaJornaleiro (source) -- if isElementWithinMarker (source, MarkerRecepcaoPref ) then -- executa a acao caso estiver dentro do marcador outputChatBox ("#000000=====================================================",source,255,255,255,true) outputChatBox ("#000000[#FF1493 NPC #000000] : #FF4500 Agendamos sua vaga, vá até a agencia marcada no mapa!",source,255,255,255,true) outputChatBox ("#000000=====================================================",source,255,255,255,true) blipJornal = createBlip(1220, -1814, 16.50, 41, 3, 0, 0, 255, 255, 0, 1000, source, true) markerjornal = createMarker ( 1220, -1814, 15.50 , "cylinder", 1.5, 0, 255, 0, 255, source, true) -- Coordenada x, x, x, "Tipo de marcador", tamanho do marcador, Cor RGB 0, 0, 0, 0, Variavel global; -- end end addCommandHandler ( "jornaleiro", _AgenciaJornaleiro ) --Comando definido para a funcao atual -------------------------------- --- FuncaO ACEITAR VAGA (SIM OU NAO) CASO SAIR DO MARCADOR"markerjornal" Desiste da vaga -- function aceitarJornal (source) if isElement (source, markerjornal) then outputChatBox ("#000000=====================================================",source,255,255,255,true) outputChatBox ("#FF4500 Deseja aceitar a vaga de jornaleiro ? /sim ou /nao",source,255,255,255,true) outputChatBox ("#000000=====================================================",source,255,255,255,true) end end addEventHandler("onMarkerHit",root, aceitarJornal) function SairDoMarcadoJornaleiro( leaveElement, markerjornal ) if getElementType( leaveElement ) == "player" then outputChatBox ("#FF4500 Você desistiu da vaga... volte em breve",getRootElement(),255,255,255,true) destroyElement(markerjornal) end end addEventHandler( "onMarkerLeave", root, SairDoMarcadoJornaleiro ) OBS: eu comentei a parte -- if isElementWithinMarker (source, MarkerRecepcaoPref ) then pra mim nao ir ficando indo direto na agencia de empregos ksksksks e a maioria do codigo esta com comentarios pq tem um outro amigo que ta fazendo um Menu que mais tarde ele vai implementar nesse scripts e estou fazendo assim pra ele nao se perder...
  5. مساعدة بسيطة علي كود اريد ان تظهر العلامات في الخريطة تدريجيا وليس جميعها في وقت واحد وعندما المس اي ماركر يقوم بحذف الماركر والعلامة ونقلنلي لماركر والعلامة التي تليها حتي انتهي من جميع الماركرات التي بالجدول اتمني منكم مساعدتي رجائا انا في مرحة التعلم رجائا اي تعديل يرجا ان تعدلة علي الكود الاساسي GUIEditor = { button = {}, window = {}, memo = {} } local targetMar = { {1345.76172, 343.09811, 19}, {205.60931, -174.15186, 1}, {2264.45654, 63.23068, 25}, {696.72180, -442.32590, 15}, {-85.84571, -1189.86865, 0.5} } local mar = {} local bli = {} function newTar() --setElementModel(localPlayer,22) setElementData(localPlayer,"pizzaDone",0) for i,v in pairs ( targetMar ) do mar[i] = createMarker(v[1],v[2],v[3],"cylinder",2,255,255,0) bli[i] = createBlip(v[1],v[2],v[3],0) setElementData(mar[i],"pizzaMar",true) end addEventHandler("onClientMarkerHit",root,onTarHit) outputChatBox("Go to the signs on the map to deliver the smuggled goods when you finish 5 counting areas and get the required amount",255,0,0) end function finishJob() removeEventHandler("onClientMarkerHit",finMar,finishJob) destroyElement(finMar) destroyElement(blipfin) outputChatBox("Good Job ! Here's your money !",255,255,0) triggerServerEvent("onDone",resourceRoot) newTar() end function onTarHit() if getElementData(localPlayer,"pizzaOccupent") == true and getElementData(source,"pizzaMar") == true then local piz = getElementData(localPlayer,"pizzaDone") if not piz then piz = 0 end destroyElement(source) setElementData(localPlayer,"pizzaDone",piz+1) piz = piz+1 outputChatBox(piz.."/5 completed !",0,255,0) if piz == 5 then removeEventHandler("onClientMarkerHit",root,onTarHit) for _,v in pairs ( bli ) do destroyElement(v) end outputChatBox("Come back now to receive your money",255,255,0) finMar = createMarker(-52.76169, -225.02179, 5.42969, "cylinder", 2, 255, 255, 0) blipfin = createBlip(-52.76169, -225.02179, 5.42969, 0) addEventHandler("onClientMarkerHit",finMar,finishJob) end end end function onClick() if source == GUIEditor.button[1] then --setElementModel(localPlayer,22) for i,v in pairs ( targetMar ) do mar[i] = createMarker(v[1],v[2],v[3],"cylinder",2,255,255,0) bli[i] = createBlip(v[1],v[2],v[3],0) setElementData(mar[i],"pizzaMar",true) end addEventHandler("onClientMarkerHit",root,onTarHit) setElementData(localPlayer,"pizzaOccupent",true) outputChatBox("Go to the signs on the map to deliver the smuggled goods when you finish 5 counting areas and get the required amount",255,0,0) removeEventHandler("onClientGUIClick",root,onClick) destroyElement(GUIEditor.window[1]) showCursor(false) elseif source == GUIEditor.button[2] then for _,v in pairs ( mar ) do destroyElement(v) end for _,v in pairs ( bli ) do destroyElement(v) end setElementData(localPlayer,"pizzaDone",0) --setElementModel(localPlayer,0) setElementData(localPlayer,"pizzaOccupent",false) outputChatBox("Good Baay!",0,255,0) removeEventHandler("onClientGUIClick",root,onClick) destroyElement(GUIEditor.window[1]) showCursor(false) end end addEvent("onPizzaHit",true) addEventHandler("onPizzaHit",root, function () GUIEditor.window[1] = guiCreateWindow(0.28, 0.30, 0.42, 0.40, "- Pizza Man -", true) guiWindowSetMovable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.memo[1] = guiCreateMemo(0.09, 0.17, 0.48, 0.69, "\nIn this job you must successfully deliver smuggled weapons. Connect all weapons and promise to get your money back.", true, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(0.63, 0.24, 0.32, 0.20, "Accept Job", true, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(0.63, 0.54, 0.32, 0.20, "Decline / Remove From Job", true, GUIEditor.window[1]) showCursor(true) addEventHandler("onClientGUIClick",root,onClick) end )
  6. HI guys I downloaded Bank System . The system is such that when the player enters the marker, the ATM becomes active. But, I want to get the ATM system activated here by writing a text(Command For Example: /Bank). And in the custom area. Server.Lua The part that defines ATM activation with the marker atmls1 = 2116, -1118.3000488281,24.89999961853,0,0,162 atmls2 = 1186.1999511719,-1374.3000488281, 13.199999809265 ,0,0,90 atmls3 = 1975.4000244141,-2176.1000976563, 13.199999809265 ,0,0,178 atmsf1 = -1571.0999755859,666.59997558594, 6.8000001907349 ,0,0,88 atmsf2 = -2655.8999023438,257.89999389648, 4 ,0,0,90 atmredcounty = -74.800003051758,1116.3000488281, 19.39999961853 ,0,0,90 atmlv1 = 1715.5999755859,1533.5, 10.39 ,0,0,92 atmlv2 = 2176.6000976563,2443.6999511719, 10.5 ,0,0,178 atmlv3 = 2159.5,950.79998779297, 10.699999809265 ,0,0,270 atmler = { { 2116, -1118.3000488281,24.89999961853,0,0,162 }, { 1186.1999511719,-1374.3000488281, 13.199999809265 ,0,0,90 }, { 1975.4000244141,-2176.1000976563, 13.199999809265 ,0,0,178 }, { -1571.0999755859,666.59997558594, 6.8000001907349 ,0,0,88 }, { -2655.8999023438,257.89999389648, 4 ,0,0,90 }, {-74.800003051758,1116.3000488281, 19.39999961853 ,0,0,90 }, { 1715.5999755859,1533.5, 10.39 ,0,0,92 }, { 2176.6000976563,2443.6999511719, 10.5 ,0,0,178 }, { 2159.5,950.79998779297, 10.699999809265 ,0,0,270 } } atm = {} function displayLoadedRes ( res ) for theKey,theAtm in ipairs(atmler) do atm[theAtm] = createObject ( 2942, theAtm [ 1 ], theAtm [ 2 ], theAtm [ 3 ], theAtm [ 4 ], theAtm [ 5 ], theAtm [ 6 ] ) atmx, atmy, atmz = getElementPosition (atm[theAtm]) atmMarker = createMarker ( atmx, atmy, atmz -1, "cylinder", 1.5, 100, 100, 200, 170 ) setElementData (atmMarker,"atm",true) atmBlip = createBlipAttachedTo ( atm[theAtm], 52 ) setBlipVisibleDistance (atmBlip,200) setElementCollisionsEnabled(atm[theAtm], false) end end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), displayLoadedRes ) function MarkerHit( hitElement, matchingDimension ) if ((getElementType(hitElement) == "player")) then local acc = getPlayerAccount (hitElement) if (acc and not isGuestAccount (acc)) then local atmmi = getElementData (source,"atm") if (atmmi == true) then triggerClientEvent(hitElement, "bankaGuiAc", hitElement) end end end end addEventHandler( "onMarkerHit", getRootElement(), MarkerHit ) please guide me Thanks
  7. HI guys I downloaded Bank System . The system is such that when the player enters the marker, the ATM becomes active. But, I want to get the system activated here by writing a text(Command Example: /Bank). And in the custom area. Server.Lua The part that defines ATM activation with the marker atmls1 = 2116, -1118.3000488281,24.89999961853,0,0,162 atmls2 = 1186.1999511719,-1374.3000488281, 13.199999809265 ,0,0,90 atmls3 = 1975.4000244141,-2176.1000976563, 13.199999809265 ,0,0,178 atmsf1 = -1571.0999755859,666.59997558594, 6.8000001907349 ,0,0,88 atmsf2 = -2655.8999023438,257.89999389648, 4 ,0,0,90 atmredcounty = -74.800003051758,1116.3000488281, 19.39999961853 ,0,0,90 atmlv1 = 1715.5999755859,1533.5, 10.39 ,0,0,92 atmlv2 = 2176.6000976563,2443.6999511719, 10.5 ,0,0,178 atmlv3 = 2159.5,950.79998779297, 10.699999809265 ,0,0,270 atmler = { { 2116, -1118.3000488281,24.89999961853,0,0,162 }, { 1186.1999511719,-1374.3000488281, 13.199999809265 ,0,0,90 }, { 1975.4000244141,-2176.1000976563, 13.199999809265 ,0,0,178 }, { -1571.0999755859,666.59997558594, 6.8000001907349 ,0,0,88 }, { -2655.8999023438,257.89999389648, 4 ,0,0,90 }, {-74.800003051758,1116.3000488281, 19.39999961853 ,0,0,90 }, { 1715.5999755859,1533.5, 10.39 ,0,0,92 }, { 2176.6000976563,2443.6999511719, 10.5 ,0,0,178 }, { 2159.5,950.79998779297, 10.699999809265 ,0,0,270 } } atm = {} function displayLoadedRes ( res ) for theKey,theAtm in ipairs(atmler) do atm[theAtm] = createObject ( 2942, theAtm [ 1 ], theAtm [ 2 ], theAtm [ 3 ], theAtm [ 4 ], theAtm [ 5 ], theAtm [ 6 ] ) atmx, atmy, atmz = getElementPosition (atm[theAtm]) atmMarker = createMarker ( atmx, atmy, atmz -1, "cylinder", 1.5, 100, 100, 200, 170 ) setElementData (atmMarker,"atm",true) atmBlip = createBlipAttachedTo ( atm[theAtm], 52 ) setBlipVisibleDistance (atmBlip,200) setElementCollisionsEnabled(atm[theAtm], false) end end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), displayLoadedRes ) function MarkerHit( hitElement, matchingDimension ) if ((getElementType(hitElement) == "player")) then local acc = getPlayerAccount (hitElement) if (acc and not isGuestAccount (acc)) then local atmmi = getElementData (source,"atm") if (atmmi == true) then triggerClientEvent(hitElement, "bankaGuiAc", hitElement) end end end end addEventHandler( "onMarkerHit", getRootElement(), MarkerHit ) please guide me
  8. Hola, es mi primer Post y espero haberlo posteado en el lugar correcto... ? tengo un bug en este codigo: addCommandHandler("Traficante", function() MarcadorBusqueda = createMarker(-2440.6796875, -607.326171875, 132.61936950684, "checkpoint", 1.5, 0, 255, 0) MarcadorEntrega = createMarker(-2520.08984375, -624.1328125, 132.78408813477, "checkpoint", 1.5, 255, 0, 0) end) addEventHandler("onClientMarkerHit", MarcadorBusqueda, function() outputChatBox("Ahora debes entregar el paquete en el estacionamiento, ve rapido") destroyElement(MarcadorBusqueda) end) addEventHandler("onClientMarkerHit", MarcadorEntrega, function() outputChatBox("Muy bien, ahora vete antes de que llegue la policia") destroyElement(MarcadorEntrega) end) No se que se debe pero no funciona el codigo y cuando funciona, funciona mal, Ruego a todo aquel que pueda aportar una ayudita con este simple codigo que me ayude, Porfavor, Gracias y espero Sus Respuestas... ? PD: esta indexado en el meta como cliente el archivo que contiene este codigo.... Help Plis!!!!.... PD2: No se ejecutan las sentencias puestas dentro de las funciones de los eventos.... =(
  9. Eu gostaria de mudar o tipo da marker, sei que existem 4 tipos de marker, mas já vê outras markers diferentes em outros servidores, como faço pra alterar ? Não estou falando dos blips flutuantes
  10. glock = createMarker(297.947, -80.809, 1000.600, "cylinder", 1, 255, 0, 0, 40) setElementInterior(glock, 4) local screenW, screenH = guiGetScreenSize() addEventHandler("onClientRender", root, function() dxDrawLine(365 - 1, 222 - 1, 365 - 1, 546, tocolor(48, 212, 5, 255), 1, false) dxDrawLine(660, 222 - 1, 365 - 1, 222 - 1, tocolor(48, 212, 5, 255), 1, false) dxDrawLine(365 - 1, 546, 660, 546, tocolor(48, 212, 5, 255), 1, false) dxDrawLine(660, 546, 660, 222 - 1, tocolor(48, 212, 5, 255), 1, false) dxDrawRectangle((screenW - 295) / 2, (screenH - 324) / 2, 295, 324, tocolor(28, 28, 28, 179), false) dxDrawRectangle(422, 254, 0, 66, tocolor(255, 255, 255, 255), false) dxDrawImage(365, 222, 295, 324, ":GUI/images/examples/new_city_sfundo.png", 0, 0, 0, tocolor(108, 108, 108, 77), false) dxDrawLine(375 - 1, 452 - 1, 375 - 1, 536, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(650, 452 - 1, 375 - 1, 452 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(375 - 1, 536, 650, 536, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(650, 536, 650, 452 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(375, 452, 275, 84, tocolor(21, 131, 10, 210), false) dxDrawText("R$15.000", 380 - 1, 398 - 1, 655 - 1, 448 - 1, tocolor(0, 0, 0, 255), 2.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("R$15.000", 380 + 1, 398 - 1, 655 + 1, 448 - 1, tocolor(0, 0, 0, 255), 2.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("R$15.000", 380 - 1, 398 + 1, 655 - 1, 448 + 1, tocolor(0, 0, 0, 255), 2.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("R$15.000", 380 + 1, 398 + 1, 655 + 1, 448 + 1, tocolor(0, 0, 0, 255), 2.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("R$15.000", 380, 398, 655, 448, tocolor(255, 255, 255, 255), 2.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("comprar", 385, 464, 640, 526, tocolor(255, 255, 255, 255), 2.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawRectangle(365, 222, 295, 32, tocolor(48, 212, 5, 255), false) dxDrawImage(442, 259, 150, 153, ":GUI/images/examples/G-18.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText("Glock-18", 369, 228, 654, 249, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) end )
  11. Hello everyone! I have a little problem createMarker(0,0,3,"checkpoint",2,255,255,255,0) i know that color goes r,g,b,a and when i output alpha(a) i see number "0". But why markers still visible?
  12. Hello all can anyone help me pls Im making a run event by creating 2 markers ,first one will be the starting marker ,2 one will be end marker when player enter 1 marker a time must start on top of the players like a counter time and when player reach 2 marker server must show the time player completed the event + best player who completed the event in best time pls help me how to ?pls help me
  13. Приветствую всех. Уже давно не могу справится с одной проблемой. Схема такая: - Ресурс: vehicles - Ресурс: houses - Ресурс: businesses В каждом ресурсе есть своя глобальная таблица pl_vehs = {} houses = {} businesses = {} И проблема вот в чем, в ресурсе vehicles каждый игрок имеет 1-4 своих ячейки в таблице pl_vehs в таблицу pl_vehs = {} заносятся авто следующим образом: к примеру спавн: pl_vehs[carID] = createVehicle(tonumber(car_Info["model"]), x, y, z, 0, 0, rZ-90) Всё вроде хорошо, дальше задаётся элемент дата, играется прекрасно. Но вот спустя какое-то время при онлайне 100-300 чел. начинается следующая проблема: человек спавнит машину, и вместо неё телепортируется либо рандомный обьект маппинга, либо элемент (в виде пикапа) из houses[] или из bussineses[] Короче говоря функция createVehicle каким-то х... телепортирует уже существующий на сервере элемент, причем даже иногда игрока телепортирует. Как это возможно?! В дебаге и консоли никаких ошибок!(
  14. Olá pessoal. É o seguinte, estou fazendo um sistema de estacionamento automático que controla o veículo do jogador para uma vaga disponível. Para isso são necessários vários colliders, um em cada curva do esquema, são aproximadamente uns 100 incluindo os colliders das vagas para fazer o jogador recuperar o controle do veículo ao terminar de estacionar. MAS Tenho uma dúvida em relação ao tipo de colisor que gere menos lag possível, devo usar markers (setando alpha 0 neles depois) ou colliders? E outra, se for colliders, qual deles é o mais leve? Esfera, cubo, tubo, círculo, retângulo ou polígono? Obs: O estacionamento fica dentro de um prédio.
  15. Hola otra vez :3, el asunto es este: Creé ciertos markers para eventos en un servidor, pero resulta que quiero que esos markers sean utilizables únicamente por dos Teams, ejemplo el team "azul" y el team "rojo", y en cada zona de los equipos hay un marker. ¿Para hacer que el equipo azul sea el unico capaz de usar el marker del equipo rojo necesito un condicional " if "?, ¿Y de ser asi, qué sentencias uso para obtener el nombre del team al que pertenece X jugador y hacer que el team al que pertenece el jugador active las funciones del marker enemigo? Disculpen si uso muchas muletillas xd, un ejemplo claro para explicarme sería: En un server existen 5 teams, pero quiero que de esos 5, 2 sean enemigos (hipotéticamente Army y Terro) y que cada uno de esos dos teams tiene una base, y un marker en cada una. Entonces Army es el único team que puede usar el marker que está en base Terro y análogamente Terro es el único que puede utilizar el marker de base Army, más nadie. ¿Cómo hago para que dichos markers sean utilizables por sus teams contrarios?
×
×
  • Create New...