davipatury

Skript - PVP ON e OFF

Aug 25th, 2015
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. #
  2. # Skript feito por davipatury - Skype: davi.patury
  3. #
  4.  
  5. # Configurações
  6. options:
  7. pvppermissao : pvp.onoff #Permissão para ligar e desligar o seu PVP!
  8. forcepvppermissao : pvp.forceonoff #Permissão para ligar e desligar o PVP de outro player!
  9.  
  10.  
  11. command /pvp <text>:
  12. description: Ligar e desligar seu PVP!
  13. usage: /pvp <on,off>
  14. executable by: players
  15. trigger:
  16. if player has permission "{@pvppermissao}":
  17. if arg 1 is equal to "on":
  18. set {pvp.%player%} to true
  19. send "&aPVP ligado!"
  20. else if arg 1 is equal to "off":
  21. set {pvp.%player%} to false
  22. send "&cPVP desligado!"
  23. else:
  24. send "&8Use somente &aON &8e &cOFF!"
  25. else:
  26. send "&cVocê não tem permissão para isso!"
  27.  
  28. command /forcepvp <player> <text>:
  29. description: Ligar e desligar PVP de outro player!
  30. aliases: /fpvp
  31. usage: /forcepvp <player> <on,off>, /fpvp <player> <on,off>
  32. trigger:
  33. if player has permission "{@forcepvppermissao}":
  34. if arg 2 is equal to "on":
  35. set {pvp.%arg 1%} to true
  36. send "&aPVP do %arg 1% ligado!"
  37. else if arg 2 is equal to "off":
  38. set {pvp.%arg 1%} to false
  39. send "&cPVP do %arg 1% desligado!"
  40. else:
  41. send "&8Use somente &aON &8e &cOFF!"
  42. else:
  43. send "&cVocê não tem permissão para isso!"
  44.  
  45. on damage of a player:
  46. if victim is a player:
  47. if {pvp.%victim%} is false:
  48. send "&c%victim% está com PVP desligado!" to attacker
  49. cancel event
  50.  
  51.  
  52. on damage of a player:
  53. if attacker is a player:
  54. if {pvp.%attacker%} is false:
  55. send "&cSeu PVP está desligado!" to attacker
  56. cancel event
Advertisement
Add Comment
Please, Sign In to add comment