Advertisement
xNawi

Anty LogOut

Feb 19th, 2015
556
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. on damage of player:
  2. if attacker is a player:
  3. if {antylogout::walka::%attacker%} is false:
  4. if {antylogout::walka::%victim%} is false:
  5. set {antylogout::walka::%attacker%} to true
  6. set {antylogout::walka::%victim%} to true
  7. set {_bossbar} to 100
  8. loop 100 times:
  9. wait 0.25 seconds
  10. remove 1 from {_bossbar}
  11. display "&cAnty LogOut" on bossbar with {_bossbar} percent by 0.3 seconds for attacker
  12. display "&cAnty LogOut" on bossbar with {_bossbar} percent by 0.3 seconds for victim
  13. display "&aAnty LogOut" on bossbar with {_bossbar} percent by 1 seconds for attacker
  14. display "&aAnty LogOut" on bossbar with {_bossbar} percent by 1 seconds for victim
  15. set {antylogout::walka::%attacker%} to false
  16. set {antylogout::walka::%victim%} to false
  17. else:
  18. if {antylogout::walka::%victim%} is false:
  19. set {antylogout::walka::%victim%} to true
  20. set {_bossbar} to 100
  21. loop 100 times:
  22. wait 0.25 seconds
  23. remove 1 from {_bossbar}
  24. display "&cAnty LogOut" on bossbar with {_bossbar} percent by 0.3 seconds for victim
  25. display "&aAnty LogOut" on bossbar with {_bossbar} percent by 1 seconds for victim
  26. set {antylogout::walka::%victim%} to false
  27. on quit:
  28. if {antylogout::walka::%player%} is true:
  29. cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement