Jump to content

Ayuda porfis


Arsilex

Recommended Posts

Posted

Tengo un pequeño problema con un script de bombas puse esto pero no funciona

Client-Side

function Plantarbomba1() 
     triggerServerEvent("onVehicleEnter", getLocalPlayer()) 
end 

Server-side

function blowVehicleEnter ( thePlayer, seat, jacked ) 
    --ENGINE START BOMB.  
    if seat == 0 then --check if the seat the player got into was id 0 - i.e. driver seat 
        blowVehicle ( source ) --if it was, toast him 
    end 
end 
addEventHandler ( "onVehicleEnter", riggedVehicle, blowVehicleEnter ) 

Eso es cuando yo presiono el boton llamado

addEventHandler ( "onClientGUIClick", Bomba1, Plantarbomba1, false ) 

entonces se pone una bomba en el coche y cuando alguien entre al coche quiero que explote pero no funciona ;S

Posted
function blowVehicleEnter ( ) 
        blowVehicle ( getPedOccupiedVehicle ( source ) ) 
end 
addEvent ( "elEvento", true ) 
addEventHandler ( "elEvento", root, blowVehicleEnter ) 

Posted

Entonces vas a tener que usar element data o una tabla server side, al entrar al vehiculo checkear si tiene esa data, entonces hacerlo explotar.

Posted

por que eso cuando yo le doy al boton me explota el coche asi cuando yo le doy al boton se activa el tiempo y al pasar 30 segundos entonces explota el coche eso quiero yo :S

  • Recently Browsing   0 members

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