Jump to content

Problem onBotWasted


abu5lf

Recommended Posts

addEventHandler( "onBotWasted", getRootElement(), 
function (attacker, weapon, bodypart ) 
    if ( attacker ) and ( attacker ~= source ) then  
        givePlayerMoney ( attacker, 1000 )  
    end 
end ) 
  

Edited by Guest
Link to comment
Guest Guest4401
addEvent("onBotWasted",true) 
addEventHandler( "onBotWasted", getRootElement(), 
function (attacker, weapon, bodypart ) 
    if ( attacker ) and ( attacker ~= source ) then 
        givePlayerMoney ( attacker, 1000 ) 
    end 
end ) 

Link to comment
addEvent("onBotWasted",true) 
addEventHandler( "onBotWasted", getRootElement(), 
function (attacker, weapon, bodypart ) 
    if ( attacker ) and ( attacker ~= source ) then 
        givePlayerMoney ( attacker, 1000 ) 
    end 
end ) 

Thanks

Link to comment
Guest Guest4401
why use this ?

function (attacker, weapon, bodypart )

if i put this well work ?

function (attacker)

some one answer me please :D

Yes, in this case it will work because the weapon and bodypart doesn't matter (in this case). In some cases they are necessary.

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