Nightimarez
New Member
- Joined
- Jul 24, 2008
- Messages
- 287
- Reaction score
- 2
PHP:
local loot = 5944
function onKill(cid, target, lastHit)
if isPlayer(target) and getPlayerLevel(cid) < 300 then
if getPlayerIp(cid) ~= getPlayerIp(target) then
doPlayerAddLevel(cid, 1)
local item = getPlayerItemById(cid, true, loot)
if item.uid == 0 or item.type == 100 then
doPlayerAddItem(cid, loot, 1)
else
doTransformItem(item.uid, loot, item.type + 1)
end
else
doPlayerAddLevel(cid, -1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'You have been punished for killing a player of the same IP.')
end
end
return true
end
Add this to it please.
PHP:
if isPlayer(target) and getPlayerLevel(cid) > 300 then
local baseExp = math.random(40000,50000)