Jump to content

Weird thingy


qaisjp

Recommended Posts

I'm making a small gamemode and part of it contains this:

  
function onVehicleStartExit(player, seat, jack, door) 
    if ACTIVE[player] == true then 
        setElementHealth(source, 100) 
        setVehicleDamageProof(source, true) 
        setTimer(setElementAlpha, 50, 101, source, getElementAlpha(source)-1) 
        setTimer(destroy, 5050, 1, source) 
        killPed(player) 
    end 
end 
addEventHandler("onVehicleStartExit", root, onVehicleStartExit) 
  

When ACTIVE[player] is false, everything is normal. But when it is true, I die (yay) but the vehicle goes on fire :o. This isn't possible...

Help me please :P

EDIT: After testing without killPed, it goes on fire...

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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