yanger
Banned User
On mine war ots, monster doesnt die.. they dont have hp, but still live..
I think its something with fragreward, cuz when i deleted it i think monsters worked good.
I think its something with fragreward, cuz when i deleted it i think monsters worked good.
Code:
function onKill(cid, target, lastHit)
local reward = {item = 2152, count = 10}
if(isPlayer(cid) and isPlayer(target)) then
if getPlayerIp(cid) ~= getPlayerIp(target) then
doPlayerAddItem(cid, reward.item, reward.count)
else
doPlayerAddExperience(cid, -5000000)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You have been punished for killing a player of the same IP.")
end
return true
end
end