function onStatsChange(cid, attacker, type, combat, value)
if isPlayer(attacker) and isPlayer(cid) then
if getPlayerIp(cid) ~= getPlayerIp(attacker) then
if type == STATSCHANGE_HEALTHLOSS then
doPlayerAddExperience(attacker, value)
doPlayerSendTextMessage(attacker, MESSAGE_STATUS_DEFAULT, "You gained " .. value .. " experience points.")
end
end
end
return true
end