#TeKa Posted January 28, 2016 Share Posted January 28, 2016 شباب ابي اتاكد ان زا الكود صح ممكن تصحيح function player_Wasted ( ammo, attacker, weapon, bodypart ) if ( attacker ) then if (attacker ~= source) then setElementHealth(attacker,getElementHealth(attacker)+5) end end end addEventHandler ( "onPlayerWasted", getRootElement(), player_Wasted ) Link to comment
' A F . Posted January 28, 2016 Share Posted January 28, 2016 addEventHandler('onPlayerWasted',root, function ( _ , killer ) if ( killer and killer ~= source and getElementType ( killer ) == 'player' ) then setElementHealth ( killer , getElementHealth ( killer ) +5 ) end end) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now