Nicky Posted January 24, 2019 Posted January 24, 2019 Como fasso para o maker destruí o veículo que passa por ele ? Preciso por oq?
miiguelz Posted January 24, 2019 Posted January 24, 2019 Você precisa verificar o marker, quando o player passar em cima, destruir o elemento.
Moderators Lord Henry Posted January 24, 2019 Moderators Posted January 24, 2019 Vc precisa de onMarkerHit, getElementType e de destroyElement. Ah, e obviamente o createMarker pra criar o marker. Eu te ajudei ou achou meu comentário útil? Não esqueça de deixar um Thanks! Minhas contribuições para a comunidade: LordHenry - MTA Wiki Profile Inscreva-se no meu canal do YouTube: Lord Henry - Entertainment Discord Oficial do MTA: https://mtasa.com/discord Blacklist e Whitelist de Scripters: Planilha Por favor, não me envie mensagens privadas solicitando suporte. Crie um tópico no fórum em vez disso.
Tommy. Posted January 25, 2019 Posted January 25, 2019 (edited) marker = createMarker(0, 0, 3, "cylinder", 1.5, 255, 0, 0, 175) function dVeh() if getElementType(source) == "vehicle" then destroyElement(source) end end addEventHandler("onMarkerHit", marker, dVeh) Edited January 25, 2019 by Tommy. DID I HELP YOU? ________________________________________________________________________ ム MY STEAM ________________________________________________________________________ MY SITE www.tommy.br.com
main Posted January 25, 2019 Posted January 25, 2019 16 minutes ago, Tommy. said: marker = createMarker(0, 0, 3, "cylinder", 1.5, 255, 0, 0, 175) function dVeh() if getElementType(source) == "vehicle" then destroyElement(source) end end addEventHandler("onMarkerHit", marker, dVeh) Você esqueceu os parâmetros do evento
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now