Jump to content

Ayuda porfis


Arsilex

Recommended Posts

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

Link to comment
  • Recently Browsing   0 members

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