Jump to content

Bombas


Arsilex

Recommended Posts

function blowVehicleEnterr ( thePlayer, seat, jacked ) 
    if ( seat == 0 and bombVehicles [ source ] ) then 
    setTimer(blowVehicle, 6000, 1, source ) 
    local x,y,z = getElementPosition( source ) 
    playSound3D("sounds/song.mp3", 373.14, -125.21, 1001, true)      
    end 
end 

Por que no suena eso? :S

Link to comment

Como hacer para que al pasar 10 segundos pa musica pare??

function musica() 
    local vehicle = getPedOccupiedVehicle ( source ) 
    local x,y,z = getElementPosition( vehicle ) 
    local sound = playSound3D("sonido/boom.mp3", x, y, z, true)  
    setSoundMaxDistance( sound, 20 )     
end 
addEvent( "onMusicon", true ) 
addEventHandler( "onMusicon", getRootElement(), musica) 

Link to comment
  • Recently Browsing   0 members

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