Hello, this script give exp for kill player, but it is giving a lot of exp
is possible change exp gain to "X" * Player level target?
is possible change exp gain to "X" * Player level target?
Lua:
function onKill(cid, target, lastHit)
if(isPlayer(cid) and isPlayer(target)) then
if getPlayerIp(cid) ~= getPlayerIp(target) then
doPlayerAddExperience(cid, (getPlayerExperience(target))) -- formula here
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You will not receive anything for killing players of the same IP.")
end
end
return true
end