Jump to content

Que funciones y eventos debo usar?


Chaz-CR

Recommended Posts

Posted

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 ) 

430x73_338AC4_FFFFFF_000000_000000.png

||Age Of Battles|WarLife|RPG|DM|FR|24/7|Custom Skins|Cars|Weapons||

http://facebook.com/AoBMTA - Fanpage

Posted

Tenes que guardar ese vehiculo en algun lugar para luego destruirlo.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Tenes que usar una tabla.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...