Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #XRELOG - Skript by MikolajGra
- #Licencja http://creativecommons.org/licenses/by-nc-nd/3.0/pl/legalcode z jednym wyjątkiem - pozwalam na edytowanie czasu walki i czasu bana
- #KORZYSTAJĄC ZE SKRIPTU AKCEPTUJESZ LICENCJĘ.
- variables:
- {walka.%player%} = false
- {tag} = "&2[&4X&cRelog&2]"
- {ban.%player%} = false
- {xrelog.tag.uzycie.%player%} = false
- options:
- wersja: 1.2
- czas: 15 #Czas walki W SEKUNDACH!
- czasbana: 10 #Czas bana W MINUTACH!
- dostep: &4Blad: &cNie masz dostepu do tej komendy.
- on damage of a player:
- if {walka.%victim%} is false:
- victim is a player:
- attacker is a player:
- set {walka.%victim%} to true
- send "%{tag}% &cJestes w walce! &4Nie wylogowywuj sie!" to victim
- wait {@czas} seconds
- if {walka.%victim%} is true:
- send "%{tag}% &aJuz nie jestes w walce" to victim
- set {walka.%victim%} to false
- if {walka.%attacker%} is false:
- attacker is a player:
- victim is a player:
- set {walka.%attacker%} to true
- send "%{tag}% &cJestes w walce! &4Nie wylogowywuj sie!" to attacker
- wait {@czas} seconds
- if {walka.%attacker%} is true:
- send "%{tag}% &aJuz nie jestes w walce" to attacker
- set {walka.%attacker%} to false
- on quit:
- if {walka.%player%} is true:
- kill player
- set {ban.%player%} to true
- broadcast "%{tag}% &e%player% &cwylogowal sie podczas walki!"
- wait {@czasbana} minutes
- set {ban.%player%} to false
- command /xrelog [<text>] [<text>] [<text>]:
- aliases: xr
- trigger:
- if argument 1 is "przestan":
- if argument 2 is not set:
- if player has permission "xrelog.przestan.ty" or "xrelog.*":
- if {walka.%player%} is true:
- set {walka.%player%} to false
- send "%{tag}% &aJuz nie jestes w walce - uzyles komende." to player
- else:
- send "%{tag}% &4Blad: &cNie jestes w walce!" to player
- else:
- send "%{tag}% {@dostep}" to player
- else:
- if player has permission "xrelog.przestan.on" or "xrelog.*":
- if arg 2 parsed as player is set:
- if {walka.%arg-2%} is true:
- set {walka.%player%} to false
- send "%{tag}% &aGracz &e%arg-2% &ajuz nie jest w walce - uzyles komendy!" to player
- send "%{tag}% &aJuz nie jestes w walce! - gracz &e%player% &auzyl komendy." to arg 2 parsed as player
- else:
- send "%{tag}% &4Blad: &cPodany gracz (&e%arg-2%&c) nie jest w walce!" to player
- else:
- send "%{tag}% &4Blad: &cPodany gracz (&e%arg-2%&c) jest offline." to player
- else:
- send "%{tag}% {@dostep}" to player
- if argument 1 is "zacznij":
- if argument 2 is not set:
- if player has permission "xrelog.zacznij.ty" or "xrelog.*":
- if {walka.%player%} is false:
- set {walka.%player%} to true
- send "%{tag}% &cJestes w walce! &4Nie wylogowywuj sie! - uzyles komendy." to player
- wait {@czas} seconds
- if {walka.%player%} is true:
- send "%{tag}% &aJuz nie jestes w walce - po wczesniejszym uzyciu komendy" to player
- set {walka.%player%} to false
- else:
- send "%{tag}% &4Blad: &cJestes w walce!" to player
- else:
- send "%{tag}% {@dostep}" to player
- else:
- if player has permission "xrelog.zacznij.on" or "xrelog.*":
- if arg 2 parsed as player is set:
- if {walka.%arg-2%} is false:
- set {walka.%player%} to true
- send "%{tag}% &cGracz &e%arg-2% &cjest w walce - uzyles komendy!" to player
- send "%{tag}% &cJestes w walce! &4Nie wylogowywuj sie! - gracz &e%player% &4uzyl komendy." to arg 2 parsed as player
- wait {@czas} seconds
- if {walka.%arg-2%} is true:
- send "%{tag}% &aJuz nie jestes w walce - po wczesniejszym uzyciu komendy przez gracza %player%" to arg 2 parsed as player
- send "%{tag}% &AGracz &e%arg-2%&a juz nie jest w walce - wczesniej uzyles komendy!" to player
- set {walka.%arg-2%} to false
- else:
- send "%{tag}% &4Blad: &cPodany gracz (&e%arg-2%&c) jest w walce!" to player
- else:
- send "%{tag}% &4Blad: &cPodany gracz (&e%arg-2%&c) jest offline." to player
- else:
- send "%{tag}% {@dostep}" to player
- if argument 1 is "tag":
- if argument 2 is "zmien":
- if argument 3 is set:
- if player has permission "xrelog.tag.zmien":
- set {tag} to colored arg 3
- send "%{tag}% &aZmieniono tag!" to player
- else:
- send "%{tag}% {@dostep}" to player
- else:
- send "%{tag}% &4Blad: &cWpisz nowa nazwe tagu!" to player
- if argument 2 is "przywroc":
- if argument 3 is not set:
- if player has permission "xrelog.tag.przywroc" or "xrelog.*":
- set {tag} to "&2[&4X&cRelog&2]"
- send "%{tag}% &aPrzywrocono tag!" to player
- else:
- send "%{tag}% {@dostep}" to player
- else:
- if player has permission "xrelog.tag.przywroc" or "xrelog.tag.zmien" or "xrelog.*":
- send "%{tag}% &4Blad: &cBrakuje kilku argumentow! (przywroc, zmien)" to player
- if argument 1 is "odbanuj":
- if player has permission "xrelog.odbanuj" or "xrelog.*":
- if argument 2 is set:
- if {ban.%arg-2%} is true:
- set {ban.%arg-2%} to false
- send "%{tag}% &aPomyslnie odbanowales gracza &e%arg-2% &a!" to player
- else:
- send "%{tag}% &4Blad: &cPodany gracz (&e%arg-2%&c) nie jest zbanowany!" to player
- else:
- send "%{tag}% &4Blad: &cPodaj nazwe gracza!" to player
- else:
- send "%{tag}% {@dostep}" to player
- if argument 1 is "sprawdz":
- if player has permission "xrelog.sprawdz" or "xrelog.*":
- if argument 2 is set:
- if argument 2 parsed as player is set:
- send "%{tag}% &cInformacje o graczu &e%arg-2%:" to player
- if {ban.%arg-2%} is true:
- send "&eZbanowany: &aTak" to player
- else:
- send "&eZbanowany: &cNie" to player
- if {walka.%arg-2%} is true:
- send "&eW walce: &aTak" to player
- else:
- send "&eW walce: &cNie" to player
- else:
- send "%{tag}% &4Blad: &cPodany gracz (&e%arg-2%&c) jest offline." to player
- if argument 2 is not set:
- send "%{tag}% &cInformacje o graczu &e%player%:" to player
- if {ban.%arg-2%} is true:
- send "&eZbanowany: &aTak" to player
- else:
- send "&eZbanowany: &cNie" to player
- if {walka.%arg-2%} is true:
- send "&eW walce: &aTak" to player
- else:
- send "&eW walce: &cNie" to player
- else:
- send "%{tag}% {@dostep}" to player
- if argument 1 is not "przestan" or "zacznij" or "tag" or "odbanuj" or "sprawdz":
- if player has permission "xrelog.przestan.ty" or "xrelog.zacznij.ty" or "xrelog.tag.zmien" or "xrelog.tag.przywroc" or "xrelog.odbanuj" or "xrelog.sprawdz" or "xrelog.*":
- send "%{tag}% &4Blad: &cNieznana komenda." to player
- if argument 1 is not set:
- if player has permission "xrelog.przestan.ty" or "xrelog.zacznij.ty" or "xrelog.przestan.on" or "xrelog.zacznij.on" or "xrelog.tag.zmien" or "xrelog.tag.przywroc" or "xrelog.odbanuj" or "xrelog.sprawdz" or "xrelog.*":
- send "%{tag}% &4Blad: &cBrakuje kilku argumentow! (przestan, zacznij, tag, odbanuj, sprawdz)" to player
- on join:
- if {ban.%player%} is true:
- kick the player due to "%{tag}% &4Zostales zbanowany na &e{@czasbana} minut&4, poniewaz wylogowales sie podczas walki!"
- on skript start:
- send "&2&4X&cRelog&2 - skript by &aMikolajGra&2 wersja: {@wersja}" to the console
- on command:
- if {walka.%player%} is true:
- if player has permission "xrelog.walka.komenda" or "xrelog.*":
- stop
- else:
- cancel event
- send "%{tag}% &4Nie mozesz uzywac tej komendy podczas walki!" to player
Advertisement
Add Comment
Please, Sign In to add comment