Chaz-CR Posted September 27, 2013 Posted September 27, 2013 Bueno lo que quiero es que cuando creo un vehiculo, si sales de ese vehiculo se destruya algo con destroyElement, pero quiero saber que funciones usar, aca dejo lo que hice pero se que esta incompleto asi se dan una idea. PD: Solo quiero con este vehiculo no con todos! local marker= createMarker (-519.2216796875, -485.2724609375, 24.5234375, "cylinder", 2,255, 200, 0, 150) function carro (player) if getElementType(player) == "vehicle" or getPedOccupiedVehicle(player) then return end fadeCamera(player,false,1 ) setTimer(fadeCamera,1000,1,player,true,5 ) outputChatBox ( "#00FFFFLleva la carga", player,255, 200, 0,true ) createVehicle ( 514, -495.861328125, -490.5888671875, 25.517845153809 ) createVehicle (450, -529.654296875, -500.3349609375, 25.017505645752) end addEventHandler( "onMarkerHit", marker, carro ) ||Age Of Battles|WarLife|RPG|DM|FR|24/7|Custom Skins|Cars|Weapons|| http://facebook.com/AoBMTA - Fanpage
Castillo Posted September 27, 2013 Posted September 27, 2013 Usa el evento: onVehicleExit con la funcion: destroyElement. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Chaz-CR Posted September 27, 2013 Author Posted September 27, 2013 Pero solo quiero que el vehiculo que spawnie en el marker explote, no cualquiera. ||Age Of Battles|WarLife|RPG|DM|FR|24/7|Custom Skins|Cars|Weapons|| http://facebook.com/AoBMTA - Fanpage
Castillo Posted September 27, 2013 Posted September 27, 2013 Tenes que guardar ese vehiculo en algun lugar para luego destruirlo. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Chaz-CR Posted September 27, 2013 Author Posted September 27, 2013 Intente haciendolo con local carro = createVehicle(blabla... Pero nada no se como ||Age Of Battles|WarLife|RPG|DM|FR|24/7|Custom Skins|Cars|Weapons|| http://facebook.com/AoBMTA - Fanpage
Castillo Posted September 27, 2013 Posted September 27, 2013 Tenes que usar una tabla. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Chaz-CR Posted September 27, 2013 Author Posted September 27, 2013 Ok gracias! ||Age Of Battles|WarLife|RPG|DM|FR|24/7|Custom Skins|Cars|Weapons|| http://facebook.com/AoBMTA - Fanpage
Recommended Posts