Jump to content

Autos Destruidos


Recommended Posts

  
function nombredelafuncion() 
    for k, v in ipairs getElementsByType ( "Defineslosautosactivos" ) do 
        if (isVehicleBlown ( v )) then 
            destroyElement ( v ) 
        end 
    end 
end 
addCommandHandler("nombredelcomando",nombredelafuncion) 
  

No se como se definen los autos que se han creado en un server ("Defineslosautosactivos" ) así que te lo dejo a ti xD

PD: Ya he visto muchos post tuyos preguntando por algo y al final te lo terminan haciendo los demás, trata de intentarlo tu primero, hacer una función y si no te resulta la publicas y te ayudamos, pero trata de hacer las cosas por ti mismo.

Link to comment

hey,

Trate De Hacer que Lo Llevara A Otra Dimencion, Pero Me Dice Lo Siguiente: "do" expected near getElementsByType

Aca el script:

function Destroy() 
    for k, v in ipairs getElementsByType ( "theVehicle" ) do 
        if (isVehicleBlown ( v )) then 
            setElementDimension ( v, 1 ) 
        end 
    end 
    end 
addCommandHandler("des", Destroy) 

Link to comment
  • Recently Browsing   0 members

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