Jump to content

Problem


boro

Recommended Posts

Posted

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 
) 

Posted
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

Posted
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

Posted
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

Posted
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) 

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