Jump to content

scripting help peds


Recommended Posts

  
function rewardOnWasted ( ammo, killer, killerweapon, bodypart ) 
        --if there is a killer, and that killer is not the same person as whoever died 
        if ( killer ) and ( killer ~= source ) then   
                givePlayerMoney ( killer, 100000 ) --reward the killer with 1000 cash. 
        end 
end 
addEventHandler ( "onPlayerWasted", getRootElement(), rewardOnWasted ) --attach the rewardOnWasted function to the relevant event. 
  

how do i make this reward me money when i waste a ped? :D:D

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