grantygames

Untitled

May 25th, 2015
293
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. on command:
  4. if {pvp.%player%} is set:
  5. cancel event
  6. send "&c&lVoce nao pode usar comandos em pvp."
  7. on damage:
  8. if attacker has permission "pvp.bypass":
  9. if {pvp.%victim%} is 0:
  10. if {pvp.%attacker%} is 0:
  11. stop
  12. else:
  13. if {pvp.%victim%} is 0:
  14. if {pvp.%attacker%} is 0:
  15. set {pvp.%victim%} to 1
  16. set {pvp.%attacker%} to 1
  17. send "&cVoce entrou em combate com &c&l%victim%" to attacker
  18. send "&cVoce entrou em combate com &c&l%attacker%" to victim
  19. wait 9 real seconds
  20. send "&cVoce saiu de combate com &c&l%victim%" to attacker
  21. send "&cVoce saiu de combate com &c&l%attacker%" to victim
  22. set {pvp.%victim%} to 0
  23. set {pvp.%attacker%} to 0
  24. on quit:
  25. if {pvp.%player%} is 1:
  26. kick player due to "&cBanido por fugir em pvp"
  27. broadcast "&c&l%player%&c levou ban por fugir em pvp por 1 minuto"
  28. kick the player due to "&c&l%player%&c levou ban por fugir em pvp por 1 minuto"
  29. ban the player
  30. wait 1 minute
  31. unban the player
  32. else:
  33. teleport player to spawn
Advertisement
Add Comment
Please, Sign In to add comment