Guest User

HerosOfLegend

a guest
Apr 21st, 2015
509
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 24.26 KB | None | 0 0
  1. #---------------------------------------------------------------------------------------#
  2. #                                                                                       #
  3. #                                   Heros of Legend                                     #
  4. #                                                                                       #                                      
  5. #---------------------------------------------------------------------------------------#
  6. #  By MrKammanY.  ##  Version  ##      Version     #
  7. # Heros Of Legend ##    0.2    ##       Alfa       #
  8. #-----------------##-----------##------------------#
  9.  
  10. # =============== Changelog ==============
  11.  
  12. # -------- Version 0.1 ----------- (Alfa)
  13. #  System pieniedzy
  14. #  System Zabic i Zgonow
  15. #  Podstawowe komedy
  16. #  Szkielet
  17.  
  18. # -------- Version 0.5 -----------
  19. #  System komed
  20. #  Własny system chatu
  21. #  Komenda Administracyjna
  22. #  Usuniecie wielu bledow
  23. #  System Aren
  24. #  Kupowanie rang poprzez tabliczki
  25.  
  26. # -------- Version 1.0 ------------
  27. #  Usprawnienie aren
  28. #  Dodane permisie Administratora ( hol.admin )
  29. #  Usprawnienie druzyn
  30. #  Dodanie AntyLogaut
  31. #  Dodane : /bug, /zgloszenia - W folderze LegendOfHeros
  32. options:
  33.     tag: &f&l[&6HerosOfLegends&f&l]
  34. on first join:
  35.     set {PostacCywil.%player%} to true
  36.     set {PostacHades.%player%} to false
  37.     set {PostacAhilles.%player%} to false
  38.     set {PostacZeus.%player%} to false
  39.     set {PostacGod.%player%} to false
  40. on join:
  41.     if {kasa::%player%} is not set:
  42.         set {kasa::%player%} to 0
  43. on join:
  44.     if {smierci::%player%} is not set:
  45.         set {smierci::%player%} to 0
  46. on join:
  47.     if {zabicia::%player%} is not set:
  48.         set {zabicia::%player%} to 0
  49. on join:
  50.     teleport player to {spawn}
  51.     set {hol.cywil.%player%} to true
  52.     set {hol.hades.%player%} to false
  53.     set {hol.ahilles.%player%} to false
  54.     set {hol.zeus.%player%} to false
  55.     set {hol.god.%player%} to false
  56.     set {blue.%player%} to false
  57.     set {red.%player%} to false
  58. variables:
  59.     {czat} = true
  60.     {odstepcheater.%player%} = true
  61. command /lol:
  62.     aliases: help, pomoc, plugins, craftbukkit, me, pl, plugins, bukkit:pl, craftbukkit
  63.     trigger:
  64.         message "{@tag} "
  65.         message "&7/dolacz <red/blue> - &aDolacz Do Areny i druzyny"
  66.         message "&7/postac - &aInformacje o Postaciach"
  67.         message "&7/wybierz <Postac>- &aWybierasz"
  68.         message "&7/money - &aIlosc pieniedzy"
  69.         message "&7/bug <tresc> - &aZglaszasz buga"
  70.         message "&7/zglos <Gracz> <powod> - &aZglaszasz gracza"
  71.         message "&7/ks <gracz> - &a Statystyki gracza (Musi byc online)"
  72.         message "&7/spawn - &aTeleportacja na spawn"
  73.         message "&7/admintools - &aKomedy Admina"
  74.         message "&7/autor - &aInformacje o Autorze"
  75. command /admintools:
  76.     permission: hol.admin
  77.     trigger:
  78.         message "{@tag} "
  79.         message "&7/daj <gracz> - &&a Daje graczowi 1000 pieniedzy"
  80.         message "&7/acreate <red/blue> - &a Tworzysz spawn dla niebieskiej lub czerwonej grupy"
  81.         message "&7/dodaj - &a Dodaje ci 1000 kasy"
  82.         message "&7/chat - &a Komendy dotyczace chatu"
  83.         message "&7/at <zablokuj/odblokuj> <gracz> - &a Restartuje postacie graczowi, aby sprawdzic czy dziala sklep :)"
  84.         message "&7/setspawn - &a Ustaw spawn"
  85. command /acreate [<text>]:
  86.     permission: "hol.admin"
  87.     trigger:
  88.         if arg 1 is "blue":
  89.             set {spawn.blue} to location of player
  90.             message "&d[&8H&ao&6L&d] &aUstawiles spawn niebieskich "
  91.         if arg 1 is "red":
  92.             set {spawn.red} to location of player
  93.             message "&d[&8H&ao&6L&d] &aUstawiles spawn czerwonych "
  94. command /dolacz [<text>]:
  95.     trigger:
  96.         if arg 1 is "red":
  97.             if {red.%player%} is false:
  98.                 if {antylog.%player%} is false:
  99.                     if {hol.cywil.%player%} is true:
  100.                         set {red.%player%} to true
  101.                         execute console command "/clear %player%"
  102.                         set {blue.%player%} to false
  103.                         give leather boots of protection 2 named "&aGumowe Buty" to player
  104.                         give wooden sword named "&7Zardzewialy Miecz" to player
  105.                         teleport player to {spawn.red}
  106.                         stop
  107.                     if {hol.hades.%player%} is true:
  108.                         set {red.%player%} to true
  109.                         execute console command "/clear %player%"
  110.                         set {blue.%player%} to false
  111.                         give Iron Sword named "&7Potezny Zelazny Miecz" to player
  112.                         give 2 Healing Potion named "&cmikstura leczenia" to player
  113.                         teleport player to {spawn.red}
  114.                     if {hol.ahilles.%player%} is true:
  115.                         set {red.%player%} to true
  116.                         execute console command "/clear %player%"
  117.                         set {blue.%player%} to false
  118.                         give Stone Axe named "&8Stary Topor" to player
  119.                         give Diamond Chestplate of protection 10 named "&aDiamentowe Uzbrojenie" to player
  120.                         give Diamond Boots named "&aDiamentowe Uzbrojenie" to player
  121.                         teleport player to {spawn.red}
  122.                         stop
  123.                     if {hol.zeus.%player%} is true:
  124.                         set {red.%player%} to true
  125.                         execute console command "/clear %player%"
  126.                         set {blue.%player%} to false
  127.                         give Bow of power 5 named "&5Luk Zeus'a" to the player
  128.                         give 64 Arrow named "&6Piorun" to player
  129.                         give Golden Helmet of protection 10 named "&eKorona" to player
  130.                         teleport player to {spawn.red}
  131.                         stop
  132.                     if {hol.god.%player%} is true:
  133.                         set {red.%player%} to true
  134.                         execute console command "/clear %player%"
  135.                         set {blue.%player%} to false
  136.                         equip player with all diamond armor of protection 5
  137.                         give 10 Healing Potion named "&cmikstura leczenia" to player
  138.                         teleport player to {spawn.red}
  139.                         stop
  140.                 else:
  141.                     message "&cNiemozesz uzyc tej komedy podczas walki"
  142.             else:
  143.                 message "&cJestes juz w tej druzynie"
  144.         if arg 1 is "blue":
  145.             if {blue.%player%} is false:
  146.                 if {hol.cywil.%player%} is true:
  147.                     set {red.%player%} to false
  148.                     execute console command "/clear %player%"
  149.                     set {blue.%player%} to true
  150.                     give leather boots of protection 2 named "&aGumowe Buty" to player
  151.                     give wooden sword named "&7Zardzewialy Miecz" to player
  152.                     teleport player to {spawn.blue}
  153.                     stop
  154.                 if {hol.hades.%player%} is true:
  155.                     set {red.%player%} to false
  156.                     execute console command "/clear %player%"
  157.                     set {blue.%player%} to true
  158.                     give Iron Sword named "&7Potezny Zelazny Miecz" to player
  159.                     give 2 Healing Potion named "&cmikstura leczenia" to player
  160.                     teleport player to {spawn.blue}
  161.                 if {hol.ahilles.%player%} is true:
  162.                     set {red.%player%} to false
  163.                     execute console command "/clear %player%"
  164.                     set {blue.%player%} to true
  165.                     give Stone Axe named "&8Stary Topor" to player
  166.                     give Diamond Chestplate of protection 10 named "&aDiamentowe Uzbrojenie" to player
  167.                     give Diamond Boots named "&aDiamentowe Uzbrojenie" to player
  168.                     teleport player to {spawn.blue}
  169.                     stop
  170.                 if {hol.zeus.%player%} is true:
  171.                     set {red.%player%} to false
  172.                     execute console command "/clear %player%"
  173.                     set {blue.%player%} to true
  174.                     give Bow of power 5 named "&5Luk Zeus'a" to the player
  175.                     give 64 Arrow named "&6Piorun" to player
  176.                     give Golden Helmet of protection 10 named "&eKorona" to player
  177.                     teleport player to {spawn.blue}
  178.                     stop
  179.                 if {hol.god.%player%} is true:
  180.                     set {red.%player%} to false
  181.                     execute console command "/clear %player%"
  182.                     set {blue.%player%} to true
  183.                     equip player with all diamond armor of protection 5
  184.                     give 10 Healing Potion named "&cmikstura leczenia" to player
  185.                     teleport player to {spawn.blue}
  186.                     stop
  187.             else:
  188.                 message "&cJestes juz w tej druzynie"
  189. command /autor:
  190.     trigger:
  191.         message "&b --- {@tag} &b---"
  192.         message "&cSkript: {@tag} &bv 1.0"
  193.         message "&cBy: &6&lMrKammanY"
  194. command /rangi [<text>]:
  195.     aliases: postac, bohater, champion
  196.     trigger:
  197.         if arg 1 is not set:
  198.             message ""
  199.             message "&f^------- &aHeros Of Legends &f-------^"
  200.             message "&7/rangi cywil &6- Informacje o cywilu"
  201.             message "&7/rangi Hades &6- Informacje o Hadesie"
  202.             message "&7/rangi Ahilles &6- Informacje o Ahillesie"
  203.             message "&7/rangi Zeus &6- Informacje o Zeusie"
  204.             message "&7/rangi God &6- Informacje o Godzie"
  205.         if arg 1 is "cywil":
  206.             message "&f------&7[Cywil]&f------"
  207.             message ""
  208.             message "Jest to ranga podstawowa"
  209.             message "Masz ja dostepna na poczatku gry"
  210.             message "Nieposiada zbyt duzych umiejetnosci"
  211.             message ""
  212.             message "Dostajesz &7Zardzewialy Miecz"
  213.             message "i &bGumowe Buty"
  214.         if arg 1 is "Hades":
  215.             message "&f------&4[Hades]&f------"
  216.             message ""
  217.             message "Jest to bohater ciemnosci"
  218.             message "Ten ciemny wojownik potrafi zabic wiele istnien"
  219.             message "Sluzy glownie do walki z bliskiej odleglosci"
  220.             message ""
  221.             message "Dostajesz &8Potezny Zelazny miecz"
  222.             message "i &c2 mikstury leczenia"
  223.         if arg 1 is "Ahilles":
  224.             message "&f------&6[Ahilles]&f-------"
  225.             message ""
  226.             message "Jest to potezny Heros"
  227.             message "Jest to potezny tank ktorego trudno zabic"
  228.             message "Wali starym toporem ktory zdobil zabijajac Lwa"
  229.             message ""
  230.             message "Dostajesz &6Stary Topor"
  231.             message "i &aDiamentowe buty oraz Zbroje"
  232.         if arg 1 is "Zeus":
  233.             message "&f------&5[Zeus]&f------"
  234.             message ""
  235.             message "Krol bogow ktory wali strzalami"
  236.             message "Jest to potezny Archer"
  237.             message "Jego Bron strzela Poteznymi Piorunami"
  238.             message ""
  239.             message "Dostajesz &4Bron Zeus'a"
  240.             message "i &6Korone"
  241.         if arg 1 is "god":
  242.             message "&f------&a[God]&f------"
  243.             message ""
  244.             message "Bog czyli jednym slowem super tank"
  245.             message "Jest go zabic najtrudniej w grze"
  246.             message "Lecz jego minusem jest to ze prawie nic nie bije"
  247.             message ""
  248.             message "Dostajesz &1Diamentowe Itemy Boga"
  249.             message "i &cmikstury leczenia"
  250. command /money:
  251.     trigger:
  252.         message "&f- - - - - - {@tag} &f- - - - - -"
  253.         message " &aStan Konta: &c&l%{kasa::%player%}%"
  254. command /at [<text>][<player>]:
  255.     executable by: console and player
  256.     permission: hol.admin
  257.     trigger:
  258.         if arg 1 is set:
  259.             if arg 2 is set:
  260.                 if arg 1 is "odblokuj":
  261.                     set {PostacHades.%arg 2%} to true
  262.                     set {PostacAhilles.%arg 2%} to true
  263.                     set {PostacZeus.%arg 2%} to true
  264.                     set {PostacGod.%arg 2%} to true
  265.                     message "&7Dales Postacje graczowi &6%arg 1%" to player
  266.                     message "&7Dostales postacje od Administratora" to arg 2
  267.                 if arg 1 is "zablokuj":
  268.                     set {PostacHades.%arg 2%} to false
  269.                     set {PostacAhilles.%arg 2%} to false
  270.                     set {PostacZeus.%arg 2%} to false
  271.                     set {PostacGod.%arg 2%} to false
  272.                     message "&7Odebrales Postacje graczowi &6%arg 1%" to player
  273.                     message "&7Twoje postacje zostaly odebrane przez Administratora" to arg 2
  274.             else:
  275.                 message "&c/at <zablokuj/odblokuj> <gracz>"
  276.         else:
  277.             message "&c/at <zablokuj/odblokuj> <gracz>"
  278. command /daj [<player>] [<text>]:
  279.     executable by: console and player
  280.     permission: hol.admin
  281.     trigger:
  282.         if arg 1 is set:
  283.             if arg 2 is set:
  284.                 set {kasa::%arg 1%} to arg 2
  285.                 message "&6>> &aDostales &5%arg 2% &a pieniedzy" to arg 1
  286.                 message "&6>> &aDales &5%arg 2% &apieniedzy graczowi &c%arg 1%"
  287.             else:
  288.                 message "&c /daj - <gracz> <kwota>"
  289.         else:
  290.             message "&c /daj - <gracz> <kwota>"
  291. command /wybierz [<text>]:
  292.     trigger:
  293.         if arg 1 is not set:
  294.             message "/wybierz <nazwa_bohatera>"
  295.         if arg 1 is "Cywil":
  296.             if {PostacCywil.%player%} is true:
  297.                 set {hol.hades.%player%} to false
  298.                 set {hol.cywil.%player%} to true
  299.                 set {hol.ahilles.%player%} to false
  300.                 set {hol.zeus.%player%} to false
  301.                 set {hol.god.%player%} to false
  302.                 message "{@tag} &aZmieniono Bohatera"
  303.                 stop
  304.             else:
  305.                 message "{@tag}&c Wpierw musisz zakupic ta postac na spawnie!"
  306.         if arg 1 is "Hades":
  307.             if {PostacHades.%player%} is true:
  308.                 set {hol.hades.%player%} to true
  309.                 set {hol.cywil.%player%} to false
  310.                 set {hol.ahilles.%player%} to false
  311.                 set {hol.zeus.%player%} to false
  312.                 set {hol.god.%player%} to false
  313.                 message "{@tag} &aZmieniono Bohatera"
  314.                 stop
  315.             else:
  316.                 message "{@tag}&c Wpierw musisz zakupic ta postac na spawnie!"
  317.         if arg 1 is "ahilles":
  318.             if {PostacAhilles.%player%} is true:
  319.                 set {hol.hades.%player%} to false
  320.                 set {hol.cywil.%player%} to false
  321.                 set {hol.ahilles.%player%} to true
  322.                 set {hol.zeus.%player%} to false
  323.                 set {hol.god.%player%} to false
  324.                 message "{@tag} &aZmieniono Bohatera"
  325.                 stop
  326.             else:
  327.                 message "{@tag}&c Wpierw musisz zakupic ta postac na spawnie!"
  328.         if arg 1 is "zeus":
  329.             if {PostacZeus.%player%} is true:
  330.                 set {hol.hades.%player%} to false
  331.                 set {hol.cywil.%player%} to false
  332.                 set {hol.ahilles.%player%} to false
  333.                 set {hol.zeus.%player%} to true
  334.                 set {hol.god.%player%} to false
  335.                 message "{@tag} &aZmieniono Bohatera"
  336.                 stop
  337.             else:
  338.                 message "{@tag}&c Wpierw musisz zakupic ta postac na spawnie!"
  339.                 stop
  340.         if arg 1 is "god":
  341.             if {PostacGod.%player%} is true:
  342.                 set {hol.hades.%player%} to false
  343.                 set {hol.cywil.%player%} to false
  344.                 set {hol.ahilles.%player%} to false
  345.                 set {hol.zeus.%player%} to false
  346.                 set {hol.god.%player%} to true
  347.                 message "{@tag} &aZmieniono Bohatera"
  348.                 stop
  349.             else:
  350.                 message "{@tag}&c Wpierw musisz zakupic ta postac na spawnie!"
  351.                 stop
  352. command /chat [<text>] [<player>] [<text>]:
  353.     permission: hol.root
  354.     permission message: &cBrak uprawnien.
  355.     aliases: czat, c
  356.     trigger:
  357.         if arg 1 is not set:
  358.             if player has permission "kamman.admin" or "kamman.mod":
  359.                 message "&9   Epic chat by Kamman Chat &cv 1.2    "
  360.                 message "&6/chat on -&a wlacza czat    "
  361.                 message "&6/chat off -&a wylacza czat    "
  362.                 message "&6/chat clean -&a wyczyszcza czat    "
  363.                 message "&6/autor -&a informacje o autorze    "
  364.                 stop
  365.         if arg 1 is "clean" or "c":
  366.             if player has permission "hol.admin" or "hol.mod":
  367.                 loop 100 times:
  368.                     message "      " to all players
  369.                 broadcast " {@tag} &7Czat wyczyszczony przez &c%player%"
  370.         if arg 1 is "on" or "wlacz":
  371.             if player has permission "hol.admin" or "hol.mod":
  372.                 set {czat} to true
  373.                 broadcast " {@tag} &7Czat wlaczony przez &c%player%"
  374.         if arg 1 is "off" or "wylacz":
  375.             if player has permission "hol.admin" or "hol.mod":
  376.                 set {czat} to false
  377.                 broadcast " {@tag} &7Czat wylaczony przez &c%player%"
  378. command /setspawn:
  379.     permission: hol.root
  380.     trigger:
  381.         set {spawn} to location of player
  382.         message "&d[&8H&ao&6L&d] &aUstawiles spawn "
  383. command /spawn:
  384.     trigger:
  385.         if {antylog.%player%} is false:
  386.             message "&cTeleportacja za 10 sekund"
  387.             apply confusion to the player for 12 seconds
  388.             wait 10 second
  389.             teleport player to {spawn}
  390.         else:
  391.             message "&cNiemozesz uzyc tej komedy podczas walki"
  392. command /ks [<offlineplayer>]:
  393.     aliases: player, gracz, statystyki, balance, bal, baltop, balancetop
  394.     trigger:
  395.         if arg 1 is not set:
  396.             message "&l^-------------^"
  397.             message "&cTablica Wynikow"
  398.             message "Gracz:&a Ty"
  399.             message "-----------------"
  400.             message "Kille:&a %{zabicia::%player%}%"
  401.             message "Dedy:&c %{zabicia::%player%}%"
  402.             message "Kasa:&5 %{kasa::%player%}%"
  403.         else:
  404.             message "&l^-------------^"
  405.             message "&cTablica Wynikow"
  406.             message "Gracz:&a %arg 1%"
  407.             message "----------------"
  408.             message "Kille:&a %{zabicia::%arg 1%}%"
  409.             message "Dedy:&c %{zabicia::%arg 1%}%"
  410.             message "Kasa:&5 %{kasa::%arg 1%}%"
  411. on sign change:
  412.     if line 1 is "Postac":
  413.         player has permission "hol.root":
  414.             set line 1 to "&6[Postac]"
  415.         else:
  416.             message "&cBrak Permisi"
  417.             set event-block to air
  418.             drop sign
  419.             stop
  420.     if line 1 is "&6[Postac]":
  421.         line 2 is empty:
  422.             message "Nazwa Rangi"
  423.             set event-block to air
  424.             drop sign
  425.             stop
  426.         line 4 is empty:
  427.             message "Koszt"
  428.             set event-block to air
  429.             drop sign
  430.             stop
  431. on rightclick on sign:
  432.     if line 1 is "&6[Postac]":
  433.         if line 4 is set:
  434.             wait 1 second
  435.             if line 2 is "hades":
  436.                 if {PostacHades.%player%} is false:
  437.                     set {_int9} to line 4
  438.                     if {kasa::%player%} is higher than {_int9}:
  439.                         set {PostacHades.%player%} to true
  440.                         remove {_int9} from {kasa::%player%}
  441.                         send "&aZakupiles postac &4Hades"
  442.                         send "&bZa 5 sekund pojawi się o tym wiadomosc na chacie"
  443.                         wait 5 seconds
  444.                         broadcast "&bGracz &a%player% &bodblokowal postac &9<&4Hades&9>"
  445.                         stop
  446.                     else:
  447.                         message "&cNie masz tyle pieniedzy"
  448.                 else:
  449.                     message "&aMasz juz ta postac"
  450.             if line 2 is "Ahilles":
  451.                 if {PostacAhilles.%player%} is false:
  452.                     set {_int8} to line 4
  453.                     if {kasa::%player%} is higher than {_int8}:
  454.                         set {PostacAhilles.%player%} to true
  455.                         remove {_int8} from {kasa::%player%}
  456.                         send "&aZakupiles postac &6Ahilles"
  457.                         send "&bZa 5 sekund pojawi się o tym wiadomosc na chacie"
  458.                         wait 5 seconds
  459.                         broadcast "&bGracz &a%player% &bodblokowal postac &9<&6Ahilles&9>"
  460.                         stop
  461.                     else:
  462.                         message "&cNie masz tyle pieniedzy"
  463.                 else:
  464.                     message "&aMasz juz ta postac"
  465.             if line 2 is "zeus":
  466.                 if {PostacZeus.%player%} is false:
  467.                     set {_int7} to line 4
  468.                     if {kasa::%player%} is higher than {_int7}:
  469.                         set {PostacZeus.%player%} to true
  470.                         remove {_int7} from {kasa::%player%}
  471.                         send "&aZakupiles postac &5Zeus"
  472.                         send "&bZa 5 sekund pojawi się o tym wiadomosc na chacie"
  473.                         wait 5 seconds
  474.                         broadcast "&bGracz &a%player% &bodblokowal postac &9<&5Zeus&9>"
  475.                         stop
  476.                     else:
  477.                         message "&cNie masz tyle pieniedzy"
  478.                 else:
  479.                     message "&aMasz juz ta postac"
  480.             if line 2 is "god":
  481.                 if {PostacGod.%player%} is false:
  482.                     set {_int6} to line 4
  483.                     if {kasa::%player%} is higher than {_int6}:
  484.                         set {PostacGod.%player%} to true
  485.                         remove {_int6} from {kasa::%player%}
  486.                         send "&aZakupiles postac &aGod"
  487.                         send "&bZa 5 sekund pojawi się o tym wiadomosc na chacie"
  488.                         wait 5 seconds
  489.                         broadcast "&bGracz &a%player% &bodblokowal postac &9<&aGod&9>"
  490.                         stop
  491.                     else:
  492.                         send "&cNie masz tyle pieniedzy"
  493.                 else:
  494.                     send "&aMasz juz ta postac"
  495.        
  496. on chat:
  497.     if {czat} is false:
  498.         player has permission "OP":
  499.             if {hol.cywil.%player%} is true:
  500.                 cancel event
  501.                 broadcast "&d(&8Cywil&d) &9[&6&oWlasciciel&9] &f%player% &f> %message%"
  502.                 stop
  503.             if {hol.hades.%player%} is true:
  504.                 cancel event
  505.                 broadcast "&d(&cHades&d) &9[&6&oWlasciciel&9] &f%player% &f> %message%"
  506.                 stop
  507.             if {hol.ahilles.%player%} is true:
  508.                 cancel event
  509.                 broadcast "&d(&6Ahilles&d) &9[&6&oWlasciciel&9] &f%player% &f> %message%"
  510.                 stop
  511.             if {hol.zeus.%player%} is true:
  512.                 cancel event
  513.                 broadcast "&6(&5Zeus&6) &9[&6&oWlasciciel&9] &f%player% &f> %message%"
  514.                 stop
  515.             if {hol.god.%player%} is true:
  516.                 cancel event
  517.                 broadcast "&d(&aGod&d) &9[&6&oWlasciciel&9] &f%player% &f> %message%"
  518.                 stop
  519.         else:
  520.             if player has permission "hol.admin":
  521.                 if {hol.cywil.%player%} is true:
  522.                     cancel event
  523.                     broadcast "&d(&8Cywil&d) &9[&cAdmin&9] &f%player% &f> %message%"
  524.                     stop
  525.                 if {hol.hades.%player%} is true:
  526.                     cancel event
  527.                     broadcast "&d(&cHades&d) &9[&cAdmin&9] &f%player% &f> %message%"
  528.                     stop
  529.                 if {hol.ahilles.%player%} is true:
  530.                     cancel event
  531.                     broadcast "&d(&6Ahilles&d) &9[&cAdmin&9] &f%player% &f> %message%"
  532.                     stop
  533.                 if {hol.zeus.%player%} is true:
  534.                     cancel event
  535.                     broadcast "&6(&5Zeus&6) &9[&cAdmin&9] &f%player% &f> %message%"
  536.                     stop
  537.                 if {hol.god.%player%} is true:
  538.                     cancel event
  539.                     broadcast "&d(&aGod&d) &9[&cAdmin&9] &f%player% &f> %message%"
  540.                     stop
  541.             if player has permission "hol.mod":
  542.                 if {hol.cywil.%player%} is true:
  543.                     cancel event
  544.                     broadcast "&d(&8Cywil&d) &9[&aMOD&9] &f%player% &f> %message%"
  545.                     stop
  546.                 if {hol.hades.%player%} is true:
  547.                     cancel event
  548.                     broadcast "&d(&cHades&d) &9[&aMOD&9] &f%player% &f> %message%"
  549.                     stop
  550.                 if {hol.ahilles.%player%} is true:
  551.                     cancel event
  552.                     broadcast "&d(&6Ahilles&d) &9[&aMOD&9] &f%player% &f> %message%"
  553.                     stop
  554.                 if {hol.zeus.%player%} is true:
  555.                     cancel event
  556.                     broadcast "&6(&5Zeus&6) &9[&aMOD&9] &f%player% &f> %message%"
  557.                     stop
  558.                 if {hol.god.%player%} is true:
  559.                     cancel event
  560.                     broadcast "&d(&aGod&d) &9[&aMOD&9] &f%player% &f> %message%"
  561.                     stop
  562.             else:
  563.                 cancel event
  564.                 message "{@tag} &cChat wylaczony dla graczy"
  565.     else:
  566.         player has permission "OP":
  567.             if {hol.cywil.%player%} is true:
  568.                 cancel event
  569.                 broadcast "&d(&8Cywil&d) &9[&6&oWlasciciel&9] &f%player% &f> %message%"
  570.                 stop
  571.             if {hol.hades.%player%} is true:
  572.                 cancel event
  573.                 broadcast "&d(&cHades&d) &9[&6&oWlasciciel&9] &f%player% &f> %message%"
  574.                 stop
  575.             if {hol.ahilles.%player%} is true:
  576.                 cancel event
  577.                 broadcast "&d(&6Ahilles&d) &9[&6&oWlasciciel&9] &f%player% &f> %message%"
  578.                 stop
  579.             if {hol.zeus.%player%} is true:
  580.                 cancel event
  581.                 broadcast "&6(&5Zeus&6) &9[&6&oWlasciciel&9] &f%player% &f> %message%"
  582.                 stop
  583.             if {hol.god.%player%} is true:
  584.                 cancel event
  585.                 broadcast "&d(&aGod&d) &9[&6&oWlasciciel&9] &f%player% &f> %message%"
  586.                 stop
  587.         else:
  588.             if player has permission "hol.admin":
  589.                 if {hol.cywil.%player%} is true:
  590.                     cancel event
  591.                     broadcast "&d(&8Cywil&d) &9[&cAdmin&9] &f%player% &f> %message%"
  592.                     stop
  593.                 if {hol.hades.%player%} is true:
  594.                     cancel event
  595.                     broadcast "&d(&cHades&d) &9[&cAdmin&9] &f%player% &f> %message%"
  596.                     stop
  597.                 if {hol.ahilles.%player%} is true:
  598.                     cancel event
  599.                     broadcast "&d(&6Ahilles&d) &9[&cAdmin&9] &f%player% &f> %message%"
  600.                     stop
  601.                 if {hol.zeus.%player%} is true:
  602.                     cancel event
  603.                     broadcast "&6(&5Zeus&6) &9[&cAdmin&9] &f%player% &f> %message%"
  604.                     stop
  605.                 if {hol.god.%player%} is true:
  606.                     cancel event
  607.                     broadcast "&d(&aGod&d) &9[&cAdmin&9] &f%player% &f> %message%"
  608.                     stop
  609.             if player has permission "hol.mod":
  610.                 if {hol.cywil.%player%} is true:
  611.                     cancel event
  612.                     broadcast "&d(&8Cywil&d) &9[&aMOD&9] &f%player% &f> %message%"
  613.                     stop
  614.                 if {hol.hades.%player%} is true:
  615.                     cancel event
  616.                     broadcast "&d(&cHades&d) &9[&aMOD&9] &f%player% &f> %message%"
  617.                     stop
  618.                 if {hol.ahilles.%player%} is true:
  619.                     cancel event
  620.                     broadcast "&d(&6Ahilles&d) &9[&aMOD&9] &f%player% &f> %message%"
  621.                     stop
  622.                 if {hol.zeus.%player%} is true:
  623.                     cancel event
  624.                     broadcast "&6(&5Zeus&6) &9[&aMOD&9] &f%player% &f> %message%"
  625.                     stop
  626.                 if {hol.god.%player%} is true:
  627.                     cancel event
  628.                     broadcast "&d(&aGod&d) &9[&aMOD&9] &f%player% &f> %message%"
  629.                     stop
  630.             if player has permission "hol.vip":
  631.                 if {hol.cywil.%player%} is true:
  632.                     cancel event
  633.                     broadcast "&d(&8Cywil&d) &9[&6VIP&9] &f%player% &f> %message%"
  634.                     stop
  635.                 if {hol.hades.%player%} is true:
  636.                     cancel event
  637.                     broadcast "&d(&cHades&d) &9[&6VIP&9] &f%player% &f> %message%"
  638.                     stop
  639.                 if {hol.ahilles.%player%} is true:
  640.                     cancel event
  641.                     broadcast "&d(&6Ahilles&d) &9[&6VIP&9] &f%player% &f> %message%"
  642.                     stop
  643.                 if {hol.zeus.%player%} is true:
  644.                     cancel event
  645.                     broadcast "&6(&5Zeus&6) &9[&6VIP&9] &f%player% &f> %message%"
  646.                     stop
  647.                 if {hol.god.%player%} is true:
  648.                     cancel event
  649.                     broadcast "&d(&aGod&d) &9[&6VIP&9] &f%player% &f> %message%"
  650.                     stop
  651.             if player has permission "hol.gracz":
  652.                 if {hol.cywil.%player%} is true:
  653.                     cancel event
  654.                     broadcast "&d(&8Cywil&d) &9[&7G&9] &f%player% &f> %message%"
  655.                     stop
  656.                 if {hol.hades.%player%} is true:
  657.                     cancel event
  658.                     broadcast "&d(&cHades&d) &9[&7G&9] &f%player% &f> %message%"
  659.                     stop
  660.                 if {hol.ahilles.%player%} is true:
  661.                     cancel event
  662.                     broadcast "&d(&6Ahilles&d) &9[&7G&9] &f%player% &f> %message%"
  663.                     stop
  664.                 if {hol.zeus.%player%} is true:
  665.                     cancel event
  666.                     broadcast "&6(&5Zeus&6) &9[&7G&9] &f%player% &f> %message%"
  667.                     stop
  668.                 if {hol.god.%player%} is true:
  669.                     cancel event
  670.                     broadcast "&d(&aGod&d) &9[&7G&9] &f%player% &f> %message%"
  671.                     stop
  672. on damage:
  673.     if {red.%name of victim%} is true:
  674.         if {red.%name of attacker%} is true:
  675.             cancel event
  676.             message "{@tag} &cNie atakuj swoich !!" to attacker
  677.             stop
  678.     if {blue.%name of victim%} is true:
  679.         if {blue.%name of attacker%} is true:
  680.             cancel event
  681.             send "{@tag} &cNie atakuj swoich !!" to attacker
  682.             stop
  683.     if {red.%attacker%} is false:
  684.         set {antylog.%attacker%} to true
  685.         message "&cJestes w walce niemozesz sie wylogowac"
  686.         wait 20 second
  687.         set {antylog.%attacker%} to false
  688.         message "&aWalka zakonczona mozesz sie wylogowac"
  689.     if {red.%victim%} is false:
  690.         set {antylog.%victim%} to true
  691.         message "&cJestes w walce niemozesz sie wylogowac" to victim
  692.         wait 20 second
  693.         set {antylog.%victim%} to false
  694.         message "&aWalka zakonczona mozesz sie wylogowac" to victim
  695. on death:
  696.     attacker is player
  697.     set {money} to 10
  698.     add {money} to {kasa::%attacker%}
  699.     set the death message to "&6%victim% &czostal zabity przez &6%attacker% &6(+10)"
Advertisement
Add Comment
Please, Sign In to add comment