Advertisement
Guest User

Untitled

a guest
May 24th, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on join:
  2. set {pvp.%player%} to 0
  3.  
  4.  
  5. on damage:
  6. if attacker has permission "pvp.bypass":
  7. if {pvp.%victim%} is 0:
  8. if {pvp.%attacker%} is 0:
  9. stop
  10. else:
  11. if {pvp.%victim%} is 0:
  12. if {pvp.%attacker%} is 0:
  13. set {pvp.%victim%} to 1
  14. set {pvp.%attacker%} to 1
  15. send "&cVoce entrou em combate com &c&l%victim%" to attacker
  16. send "&cVoce entrou em combate com &c&l%attacker%" to victim
  17. wait 9 real seconds
  18. send "&cVoce saiu de combate com &c&l%victim%" to attacker
  19. send "&cVoce saiu de combate com &c&l%attacker%" to victim
  20. set {pvp.%victim%} to 0
  21. set {pvp.%attacker%} to 0
  22. on quit:
  23. if {pvp.%player%} is 1:
  24. kick player due to "&cBanido por fugir em pvp"
  25. broadcast "&c&l%player%&c levou ban por fugir em pvp por 1 minutp"
  26. ban the player
  27. wait 1 minute
  28. unban the player
  29. else:
  30. teleport player to spawn
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement