Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Autor:ProMati14
- #Wersja: 1.0
- #Info: Skrypt jest do waszego uzytku!
- #mozecie zrobic z nim co chcecie
- #jestem dobrym czlowiekiem :D
- #jedyne o co prosze to nie handlowanie nim
- #reszta kod i wszystko jest dla waszego
- #mozecie zmieniac autora itd...
- #jedynie prosze o dzielenie sie skryptem
- #z innymi osobami mowiac o autorze
- #jako o mnie ;)
- #Wielkie dzieki Milej Zabawy
- #Opcje do gry Glownie prefixy rang oraz tagu
- options:
- tag: &8[&9ProEx&8]
- Grupa1: Pomocnik
- Grupa2: MegaPomocnik
- Grupa3: KidMod
- Grupa4: Mod
- Grupa5: Admin
- Grupa6: HeadAdmin
- Grupa7: Wlasciciel
- Grupa8: Gracz
- #Linijka ktora po 1 dolaczeniu do gry daje graczowi Range Gracz
- on first join:
- set {grupa.{@Grupa8}.%player%} to true
- #Komendy nadająca rangi
- command /nadaj [<player>] [<text>]:
- trigger:
- if {grupa.{@Grupa7}.%player%} is true:
- if arg 2 is "{@Grupa1}":
- set {grupa.{@Grupa1}.%arg 1%} to true
- send "{@tag} &4Nadales Graczowi &c%arg 1% &4uprawnienia &9{@Grupa1}" to player
- if arg 2 is "{@Grupa2}":
- set {grupa.{@Grupa2}.%arg 1%} to true
- send "{@tag} &4Nadales Graczowi &c%arg 1% &4uprawnienia &9{@Grupa2}" to player
- if arg 2 is "{@Grupa3}":
- set {grupa.{@Grupa3}.%arg 1%} to true
- send "{@tag} &4Nadales Graczowi &c%arg 1% &4uprawnienia &9{@Grupa3}" to player
- if arg 2 is "{@Grupa4}":
- set {grupa.{@Grupa4}.%arg 1%} to true
- send "{@tag} &4Nadales Graczowi &c%arg 1% &4uprawnienia &9{@Grupa4}" to player
- if arg 2 is "{@Grupa5}":
- set {grupa.{@Grupa5}.%arg 1%} to true
- send "{@tag} &4Nadales Graczowi &c%arg 1% &4uprawnienia &9{@Grupa5}" to player
- if arg 2 is "{@Grupa6}":
- set {grupa.{@Grupa6}.%arg 1%} to true
- send "{@tag} &4Nadales Graczowi &c%arg 1% &4uprawnienia &9{@Grupa6}" to player
- if arg 2 is "{@Grupa7}":
- set {grupa.{@Grupa7}.%arg 1%} to true
- send "{@tag} &4Nadales Graczowi &c%arg 1% &4uprawnienia &9{@Grupa7}" to player
- #komenda automatycznie wyszukujaca range i degradujaca z niej <mozliwosci uzycia jako wlasciciel>
- command /degrad [<player>]:
- trigger:
- if {grupa.{@Grupa7}.%player%} is true:
- if {grupa.{@Grupa7}.%arg 1%} is true:
- set {grupa.{@Grupa7}.%arg 1%} to false
- send "{@tag} &4Zdegradowales &c%arg 1% &4z &9{@Grupa7}" to player
- stop
- if {grupa.{@Grupa7}.%player%} is true:
- if {grupa.{@Grupa6}.%arg 1%} is true:
- set {grupa.{@Grupa6}.%arg 1%} to false
- send "{@tag} &4Zdegradowales &c%arg 1% &4z &9{@Grupa6}" to player
- stop
- if {grupa.{@Grupa7}.%player%} is true:
- if {grupa.{@Grupa5}.%arg 1%} is true:
- set {grupa.{@Grupa5}.%arg 1%} to false
- send "{@tag} &4Zdegradowales &c%arg 1% &4z &9{@Grupa5}" to player
- stop
- if {grupa.{@Grupa7}.%player%} is true:
- if {grupa.{@Grupa4}.%arg 1%} is true:
- set {grupa.{@Grupa4}.%arg 1%} to false
- send "{@tag} &4Zdegradowales &c%arg 1% &4z &9{@Grupa4}" to player
- stop
- if {grupa.{@Grupa3}.%player%} is true:
- if {grupa.{@Grupa3}.%arg 1%} is true:
- set {grupa.{@Grupa3}.%arg 1%} to false
- send "{@tag} &4Zdegradowales &c%arg 1% &4z &9{@Grupa3}" to player
- stop
- if {grupa.{@Grupa7}.%player%} is true:
- if {grupa.{@Grupa2}.%arg 1%} is true:
- set {grupa.{@Grupa2}.%arg 1%} to false
- send "{@tag} &4Zdegradowales &c%arg 1% &4z &9{@Grupa2}" to player
- stop
- if {grupa.{@Grupa7}.%player%} is true:
- if {grupa.{@Grupa1}.%arg 1%} is true:
- set {grupa.{@Grupa1}.%arg 1%} to false
- send "{@tag} &4Zdegradowales &c%arg 1% &4z &9{@Grupa1}" to player
- stop
- else:
- send "{@tag} &4Gracz &c%arg 1% &4Nie posiada tej rangi!"
- stop
- else:
- send "{@tag} &4Nie masz do tego uprawnien!"
- stop
- #Kod odpowiadajacy za prefixy na chacie
- on chat:
- if {grupa.{@Grupa8}.%player%} is true:
- cancel event
- broadcast "&8[&7{@Grupa8}&8] &7%player% &8>> &7%message%"
- if {grupa.{@Grupa7}.%player%} is true:
- cancel event
- broadcast "&8[&4{@Grupa7}&8] &7%player% &8>> &4%message%"
- if {grupa.{@Grupa6}.%player%} is true:
- cancel event
- broadcast "&8[&4{@Grupa6}&8] &7%player% &8>> &4%message%"
- if {grupa.{@Grupa5}.%player%} is true:
- cancel event
- broadcast "&8[&9{@Grupa5}&8] &7%player% &8>> &9%message%"
- if {grupa.{@Grupa4}.%player%} is true:
- cancel event
- broadcast "&8[&2{@Grupa4}&8] &7%player% &8>> &2%message%"
- if {grupa.{@Grupa3}.%player%} is true:
- cancel event
- broadcast "&8[&2{@Grupa3}&8] &7%player% &8>> &2%message%"
- if {grupa.{@Grupa2}.%player%} is true:
- cancel event
- broadcast "&8[&2{@Grupa2}&8] &7%player% &8>> &2%message%"
- if {grupa.{@Grupa1}.%player%} is true:
- cancel event
- broadcast "&8[&2{@Grupa1}&8] &7%player% &8>> &2%message%"
- #Reload Grupy 7 <Grupa 8 jest Neutralna>
- every 10 seconds:
- loop all players:
- if {grupa.{@Grupa7}.%loop-player%} is true:
- set {grupa.{@Grupa6}.%loop-player%} to false
- set {grupa.{@Grupa5}.%loop-player%} to false
- set {grupa.{@Grupa4}.%loop-player%} to false
- set {grupa.{@Grupa3}.%loop-player%} to false
- set {grupa.{@Grupa2}.%loop-player%} to false
- set {grupa.{@Grupa1}.%loop-player%} to false
- set {grupa.{@Grupa8}.%loop-player%} to false
- #Reload Grupy 6
- every 10 seconds:
- loop all players:
- if {grupa.{@Grupa6}.%loop-player%} is true:
- set {grupa.{@Grupa5}.%loop-player%} to false
- set {grupa.{@Grupa4}.%loop-player%} to false
- set {grupa.{@Grupa3}.%loop-player%} to false
- set {grupa.{@Grupa2}.%loop-player%} to false
- set {grupa.{@Grupa1}.%loop-player%} to false
- set {grupa.{@Grupa8}.%loop-player%} to false
- #Reload Grupy 5
- every 10 seconds:
- loop all players:
- if {grupa.{@Grupa5}.%loop-player%} is true:
- set {grupa.{@Grupa4}.%loop-player%} to false
- set {grupa.{@Grupa3}.%loop-player%} to false
- set {grupa.{@Grupa2}.%loop-player%} to false
- set {grupa.{@Grupa1}.%loop-player%} to false
- set {grupa.{@Grupa8}.%loop-player%} to false
- #Reload Grupy 4
- every 10 seconds:
- loop all players:
- if {grupa.{@Grupa4}.%loop-player%} is true:
- set {grupa.{@Grupa3}.%loop-player%} to false
- set {grupa.{@Grupa2}.%loop-player%} to false
- set {grupa.{@Grupa1}.%loop-player%} to false
- set {grupa.{@Grupa8}.%loop-player%} to false
- #Reload Grupy 3
- every 10 seconds:
- loop all players:
- if {grupa.{@Grupa3}.%loop-player%} is true:
- set {grupa.{@Grupa2}.%loop-player%} to false
- set {grupa.{@Grupa1}.%loop-player%} to false
- set {grupa.{@Grupa8}.%loop-player%} to false
- #Reload Grupy 2
- every 10 seconds:
- loop all players:
- if {grupa.{@Grupa2}.%loop-player%} is true:
- set {grupa.{@Grupa1}.%loop-player%} to false
- set {grupa.{@Grupa8}.%loop-player%} to false
- #Reload Grupy 1
- every 10 seconds:
- loop all players:
- if {grupa.{@Grupa1}.%loop-player%} is true:
- set {grupa.{@Grupa8}.%loop-player%} to false
- set {grupa.{@Grupa8}.%loop-player%} to false
- #Podstawowe CMD <BONUS>
- command /oglos [<text>]:
- trigger:
- if {grupa.{@Grupa5}.%player%} is true:
- broadcast "%colored arg%"
- stop
- if {grupa.{@Grupa6}.%player%} is true:
- broadcast "%colored arg%"
- stop
- if {grupa.{@Grupa7}.%player%} is true:
- broadcast "%colored arg%"
- stop
- else:
- send "&4Nie masz do tego uprawnien!"
- command /w [<player>] [<text>]:
- trigger:
- send "%colored arg 2%" to arg 1
- send "&5Twoja wiadomosc zostala wyslana..." to player
- command /tp [<player>]:
- trigger:
- if {grupa.{@Grupa7}.%player%} is true:
- set {_tp} to location of arg 1
- teleport player to {_tp}
- if {grupa.{@Grupa6}.%player%} is true:
- set {_tp} to location of arg 1
- teleport player to {_tp}
- if {grupa.{@Grupa5}.%player%} is true:
- set {_tp} to location of arg 1
- teleport player to {_tp}
- if {grupa.{@Grupa4}.%player%} is true:
- set {_tp} to location of arg 1
- teleport player to {_tp}
Advertisement
Add Comment
Please, Sign In to add comment