Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1 script:
- function remove_exp(cid, old)
- if isPlayer(cid) then
- doPlayerAddExperience(cid, - (getPlayerExperience(cid) - old))
- end
- end
- function onKill(cid, target, deathList)
- if not isPlayer(target) then
- return true
- end
- if (getPlayerIp(cid) == getPlayerIp(target)) then
- addEvent(remove_exp, 100, cid, getPlayerExperience(cid))
- end
- return true
- end
- second script:
- function onKill(cid, target, lastHit)
- if cid ~= target and isPlayer(target) then
- if getPlayerIp(cid) == getPlayerIp(target) then
- doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'You will be punished for killing a player of the same IP and will not recieve the reward.')
- else
- doPlayerAddItem(cid, 2159, 1)
- end
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement