<event type="kill" name="no-exp" event="script" value="enforced.lua"/>
function remove_exp(cid, old)
if isPlayer(cid) then
doPlayerAddExperience(cid, - (getPlayerExperience(cid) - old))
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE, 'Exp from MC not allowed!')
end
end
function onKill(cid, target, flags)
if not isPlayer(target) then
return true
end
if (getPlayerIp(cid) == getPlayerIp(target)) then
if(flags % 2 == 1) then
addEvent(remove_exp, 100, cid, getPlayerExperience(cid))
end
end
return true
end