Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {pvp.ochrona} = false
- options:
- ochrona.czas: 30
- command /ochrona:
- trigger:
- if {pvp.ochrona.%player%} is true:
- send "&eTwoja ochrona pvp jest &aAKTYWNA!"
- if {pvp.ochrona.%player%} is false:
- send "&eTwoja ochrona pvp jest &cNIEAKTYWNA!"
- on damage:
- if attacker is a player:
- if {pvp.ochrona.%attacker%} is true:
- victim is player
- cancel event
- send "&cNie mozesz nikogo atakowac poniewaz masz wlaczona &eOchrone &cprzed PvP !" to attacker
- if victim is a player:
- if {pvp.ochrona.%victim%} is true:
- attacker is player
- cancel event
- send "&cTa osoba ma wlaczona &eOchrone &cprzed PvP !" to attacker
- every 3 second:
- loop all players:
- if {pvp.ochrona.%loop-players%} is true:
- wait {@ochrona.czas} minutes
- set {pvp.ochrona.%loop-players%} to false
- on first join:
- set {pvp.ochrona.%player%} to true
- wait 2 second
- send "&ePo pierwszym wejsciu na server dostales 30 minutowa ochrone pvp!"
Advertisement
Add Comment
Please, Sign In to add comment