Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. 1 script:
  2. function remove_exp(cid, old)
  3. if isPlayer(cid) then
  4. doPlayerAddExperience(cid, - (getPlayerExperience(cid) - old))
  5. end
  6. end
  7.  
  8. function onKill(cid, target, deathList)
  9. if not isPlayer(target) then
  10. return true
  11. end
  12.  
  13. if (getPlayerIp(cid) == getPlayerIp(target)) then
  14. addEvent(remove_exp, 100, cid, getPlayerExperience(cid))
  15. end
  16. return true
  17. end
  18.  
  19.  
  20.  
  21. second script:
  22. function onKill(cid, target, lastHit)
  23. if cid ~= target and isPlayer(target) then
  24. if getPlayerIp(cid) == getPlayerIp(target) then
  25. doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'You will be punished for killing a player of the same IP and will not recieve the reward.')
  26. else
  27. doPlayerAddItem(cid, 2159, 1)
  28. end
  29. end
  30. return true
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement