Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {pvp.%player%.time} = 0
- {pvp.%player%.guilty} = false
- options:
- tag: &c[&6ncANTI-LOGOUT&c]
- on command:
- if {pvp.%player%.time} >= 1:
- cancel event
- send "{@tag} &3Pisanie komend podczas PvP jest &4ZABLOKOWANE" to sender
- on damage:
- if attacker is player:
- if victim is player:
- set {pvp.%attacker%.time} to 12
- set {pvp.%victim%.time} to 12
- send "{@tag} &6Zaatakowales %victim%. &4&lZAKAZANE JEST WYCHODZENIE PODCZAS BITWY" to attacker
- send "{@tag} &6Zostales zaatakowany przez %attacker%. &4&lZAKAZANE JEST WYCHODZENIE PODCZAS BITWY" to victim
- on disconnect:
- if {pvp.%player%.time} >= 1:
- broadcast "{@tag} &b&lLOL CO ZA NOOB! %player% WYSZEDL PODCZAS WALKI"
- set {pvp.%player%.guilty} to true
- on join:
- if {pvp.%player%.guilty} is true:
- clear player's inventory
- broadcast "{@tag} &a&lOOOO, WSZEDL NOOB! %player%"
- on death:
- set {pvp.%victim%.time} to 0
- every second:
- loop all players:
- add -1 to {pvp.%loop-player%.time}
- if {pvp.%loop-player%.time} > 0:
- if {pvp.%loop-player%.time} > 1:
- if {pvp.%loop-player%.time} > 2:
- if {pvp.%loop-player%.time} > 3:
- if {pvp.%loop-player%.time} > 4:
- if {pvp.%loop-player%.time} > 5:
- if {pvp.%loop-player%.time} > 6:
- if {pvp.%loop-player%.time} > 7:
- if {pvp.%loop-player%.time} > 8:
- if {pvp.%loop-player%.time} > 9:
- if {pvp.%loop-player%.time} > 10:
- send "&bTIMER: &4&l10s" to loop-player
- else:
- send "&bTIMER: &4&l9s" to loop-player
- else:
- send "&bTIMER: &6&l8s" to loop-player
- else:
- send "&bTIMER: &6&l7s" to loop-player
- else:
- send "&bTIMER: &e&l6s" to loop-player
- else:
- send "&bTIMER: &e&l5s" to loop-player
- else:
- send "&bTIMER: &a&l4s" to loop-player
- else:
- send "&bTIMER: &a&l3s" to loop-player
- else:
- send "&bTIMER: &2&l2s" to loop-player
- else:
- send "&bTIMER: &2&l1s" to loop-player
- else:
- send "{@tag} &2Bitwa zakonczona. Mozesz sie wylogowac." to loop-player
Advertisement
Add Comment
Please, Sign In to add comment