Skocz do zawartości
  • 0

Tnt off/on


UrtronPolska

Pytanie

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0


Command /tnt []:
Permission: skript.pl
Trigger:
If ARG 1 is not set:
IF {tnt} is "0":
Set {tnt} to "1"
Send "Wylaczono TnT" to all players
IF {tnt} is "1":
Set {tnt} to "0"
Send "Wlaczono TnT" to all players
If ARG 1 is "on":
Set {tnt} to "0"
Send "Wlaczono TnT" to all players
If ARG 1 is "off":
Set {tnt} to "1"
Send "Wylaczono TnT" to all players

On place of tnt:
If {tnt} is "1":
Cancel event
Send " TnT jest teraz wylaczone" to player

Skrypt jest obsługiwany przez wtyczkę Skript

Odnośnik do komentarza
https://skript.pl/temat/10088-tnt-offon/#findComment-75529
Udostępnij na innych stronach

  • 0
options:
                messageTnTOFF: &eLTnt»» &6&oTnT i wagoniki zostaly wylaczone przez %player%
                messageTnTON: &eLTnt»» &6&oTnT i wagoniki zostaly wlaczone przez %player%
                messagePermission: &4Nie Masz Permissji!
                PROCENTOBS: 33
                PROCENTWODA: 33
                messagePopolozeniu: &eLTnt»» &6&oTnT jest wylaczone!
                blokOBS: air
                blokWODA: air
variables:
        {tntItachi} = 0
on place of tnt:
        if {tntItachi} is 1:
                send "{@messagePopolozeniu}"
on explode:
        if {tntItachi} is 1:
                loop blocks in radius 4 of event-location:
                        loop-block is water or lava:
                                if chance of 0%:
                                        set loop-block to cobblestone
                loop blocks in radius 4 of event-location:
                        loop-block is obsidian:
                                if chance of 0%:
                                        set loop-block to air
                cancel event
on explode:
        if {tntItachi} is 0:
                loop blocks in radius 4 of event-location:
                        loop-block is water or lava:
                                if chance of {@PROCENTWODA}%:
                                        set loop-block to {@blokWODA}
                loop blocks in radius 4 of event-location:
                        loop-block is obsidian:
                                if chance of {@PROCENTOBS}%:
                                        set loop-block to {@blokOBS}
command /tnt [<text>]:
        trigger:
                if player has permissions "tnt.lord":
                        if arg 1 is not set:
                                send "&eLTnt»» &6&oTnT on/off"
                                send "&eLTnt»» &6&o/tnt on <-Wlacz tnt"
                                send "&eLTnt»» &6&o/tnt off <-Wylacz tnt"
                        if arg 1 is "OFF":
                                set {tntItachi} to 1
                                broadcast "{@messageTnTOFF}"
                        if arg 1 is "ON":
                                set {tntItachi} to 0
                                broadcast "{@messageTnTON}"
                else:
                        send "{@messagePermission}"

 

Odnośnik do komentarza
https://skript.pl/temat/10088-tnt-offon/#findComment-75625
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...