Jump to content

i need some help


HoLsTeN

Recommended Posts

and here is a script that might be helpful , i made it

function playerhurt ( attacker, weapon, bodypart, loss ) 
    if not (getElementData(source,"armor")) then 
        if ( bodypart == 9 ) then 
            killPed ( source, attacker, weapon, bodypart ) 
            setPedHeadless(source, true) 
            setTimer( setPedHeadless, 30000, 1, source, false) 
            setPlayerNametagShowing ( attacker, false ) 
            setTimer( setPlayerNametagShowing, 60000, 1, attacker, true) 
            setElementAlpha ( attacker, 15 ) 
            setTimer( setElementAlpha, 60000, 1, attacker, 255) 
        end 
    end 
end 
addEventHandler ( "onPlayerDamage", getRootElement (), playerhurt ) 
  

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