function increaseHP ( _, attacker, _, _ )
if attacker and attacker ~= source then
local actualHealth = getElementHealth ( attacker )
outputChatBox ("Your HP has been increased because you killed "..getPlayerName (source).."#ffffff.", attacker, 255, 255, 255, true)
setElementHealth ( attacker, tonumber ( actualHealth ) + 10 )
end
end
addEventHandler ("onPlayerWasted", getRootElement(), increaseHP)
تفضل الكود شغال 100% بال%100
setElementHealth ( attacker, tonumber ( actualHealth ) + 10 )
رقم 10 يعني لو قتل شخص كم يزيد من دمه انا حاط 10 انت اذا تبي تغيرها ^^