Jump to content

make ped kill with everything except fire


yesyesok

Recommended Posts

Client:

function bproof ( attacker, weapon, bodypart ) 
    if weapon then 
        cancelEvent() 
    end 
end 
addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), bproof ) 

 

Server:

function onehit ( attacker, weapon, bodypart, loss ) 
    if not weapon then 
        killPed ( source, attacker, weapon, bodypart ) 
end 
end 
addEventHandler ( "onPlayerDamage", getRootElement (), onehit ) 

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