Jump to content

Problem


boro

Recommended Posts

Hi all I tried to make script cheat mega hit [iAVENJQ] script works but when I shoot from gun so player is dead to one shot why ? what is bad ?

this is lua

addEvent "onPlayerFistshot" 
  
addEventHandler("onPlayerDamage", getRootElement(), 
    function (attacker, fist, bodypart, loss) 
        if bodypart then 
            local result = triggerEvent("onPlayerFistshot", source, attacker, fist, loss) 
            if result == true then 
                killPlayer(source, attacker, fist, bodypart) 
            end 
        end 
    end 
) 

Link to comment
function kill (attacker, fist, bodypart, loss) 
  local weapon = getPedWeapon(attacker) 
   if weapon = 0 
        elseif bodypart then 
            local result = triggerEvent("onPlayerFistshot", source, attacker, fist, loss) 
            if result == true then 
                killPed(source, attacker, 0, 3) 
            end 
        end 
    end 
addEvent ("onPlayerFistshot", true) 
addEventHandler("onPlayerDamage", root, kill) 

Untested yet, check it out

Link to comment
function kill (attacker, fist, bodypart, loss) 
  local weapon = getPedWeapon(attacker) 
   if weapon = 0 then 
        elseif bodypart then 
            local result = triggerEvent("onPlayerFistshot", source, attacker, fist, loss) 
            if result == true then 
                killPed(source, attacker, 0, 3) 
            end 
        end 
    end 
addEvent ("onPlayerFistshot", true) 
addEventHandler("onPlayerDamage", root, kill) 

Untested also

Link to comment
function kill (attacker, fist, bodypart, loss) 
  local weapon = getPedWeapon(attacker) 
   if weapon == 0 then 
        elseif bodypart then 
            local result = triggerEvent("onPlayerFistshot", source, attacker, fist, loss) 
            if result == true then 
                killPed(source, attacker, 0, 3) 
            end 
        end 
    end 
addEvent ("onPlayerFistshot", true) 
addEventHandler("onPlayerDamage", root, kill) 

Still untested

Link to comment
function kill(attacker,fist,bodypart,loss) 
    local weapon = getPedWeapon(attacker); 
    if weapon == 0 then 
        if bodypart then 
            local result = triggerEvent("onPlayerFistshot",source,attacker,fist,loss); 
            if result == true then 
                killPed(source,attacker,0,3); 
            end 
        end 
    end 
end 
addEvent("onPlayerFistshot",true) 
addEventHandler("onPlayerDamage",root,kill) 

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...