Guest User

Ochrona bY xCrysiSx

a guest
Dec 25th, 2013
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. variables:
  2. {pvp.ochrona} = false
  3. options:
  4. ochrona.czas: 30
  5. command /ochrona:
  6. trigger:
  7. if {pvp.ochrona.%player%} is true:
  8. send "&eTwoja ochrona pvp jest &aAKTYWNA!"
  9. if {pvp.ochrona.%player%} is false:
  10. send "&eTwoja ochrona pvp jest &cNIEAKTYWNA!"
  11. on damage:
  12. if attacker is a player:
  13. if {pvp.ochrona.%attacker%} is true:
  14. victim is player
  15. cancel event
  16. send "&cNie mozesz nikogo atakowac poniewaz masz wlaczona &eOchrone &cprzed PvP !" to attacker
  17. if victim is a player:
  18. if {pvp.ochrona.%victim%} is true:
  19. attacker is player
  20. cancel event
  21. send "&cTa osoba ma wlaczona &eOchrone &cprzed PvP !" to attacker
  22. every 3 second:
  23. loop all players:
  24. if {pvp.ochrona.%loop-players%} is true:
  25. wait {@ochrona.czas} minutes
  26. set {pvp.ochrona.%loop-players%} to false
  27. on first join:
  28. set {pvp.ochrona.%player%} to true
  29. wait 2 second
  30. send "&ePo pierwszym wejsciu na server dostales 30 minutowa ochrone pvp!"
Advertisement
Add Comment
Please, Sign In to add comment