Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage of player:
- if attacker is a player:
- if {antylogout::walka::%attacker%} is false:
- if {antylogout::walka::%victim%} is false:
- set {antylogout::walka::%attacker%} to true
- set {antylogout::walka::%victim%} to true
- set {_bossbar} to 100
- loop 100 times:
- wait 0.25 seconds
- remove 1 from {_bossbar}
- display "&cAnty LogOut" on bossbar with {_bossbar} percent by 0.3 seconds for attacker
- display "&cAnty LogOut" on bossbar with {_bossbar} percent by 0.3 seconds for victim
- display "&aAnty LogOut" on bossbar with {_bossbar} percent by 1 seconds for attacker
- display "&aAnty LogOut" on bossbar with {_bossbar} percent by 1 seconds for victim
- set {antylogout::walka::%attacker%} to false
- set {antylogout::walka::%victim%} to false
- else:
- if {antylogout::walka::%victim%} is false:
- set {antylogout::walka::%victim%} to true
- set {_bossbar} to 100
- loop 100 times:
- wait 0.25 seconds
- remove 1 from {_bossbar}
- display "&cAnty LogOut" on bossbar with {_bossbar} percent by 0.3 seconds for victim
- display "&aAnty LogOut" on bossbar with {_bossbar} percent by 1 seconds for victim
- set {antylogout::walka::%victim%} to false
- on quit:
- if {antylogout::walka::%player%} is true:
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement