Skocz do zawartości
  • 0

wracanie do poprzedniego gui


trolekp

Pytanie

8 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
47 minut temu, Fendi napisał:

No to zrób po prostu

Wystarczy że w on inventory clicku zrobisz to samo gui, lub lepiej, wywolasz funkcje

tu daje kod nie dokaczony bo koncze gui z pomoca ale juz wysylam i tez nagranie co sie dzieje jakbys mogl poprawidz  nie ma bladow jak co i link do nagrania https://streamable.com/znrta6 te wlaczanie tez sie buguje z tym zarzadzanie jak z pomoca dlatego wylaczylem narazie zalaczanie

options:
  prefix: &8&l[&c&lTR&f&lCODE]&8
  prefixChat: &c&lTR&f&lCODE
  prefixgui: &8&k||||&7 &c&lTR&f&lCODE &8&k||||
  prefixguizarzadzanie: &8&k||||&7 &c&lTR&f&lCODE &8&k||||
  prefixguipomoc: &8&k||||&7 &c&lTR&f&lCODE &8&k||||
  ip: &c&lTR&f&lCODE
on chat:
	if {trcode.chat.10} is true:
		if player does not have permission "trcode.chat.bypass":
			cancel event
			send "&8* &7Chat jest obecnie &cwylaczony &8*"
			send title "&7&lChat jest &c&LOFF"
			stop
 
command /chat:
    permission: trcode.chat.admin
    permission message: {@prefix}: &7Nie posiadasz wymaganych permisji! &7(trcode.chat.admin)
    trigger:
        set {_trcode.chat.gui} to player
        set {_} to chest inventory with 1 row named "{@prefixgui}" 
        set slot (integers between 0 and 8) of {_} to black stained glass pane named " " with lore " " 
        set slot 2 of {_} to lectern named "&6Zarzadzanie Chatem" with lore "&7kliknij aby zarzadzac chatem"
        set slot 4 of {_} to skull of "trolekkp" parsed as offline player named "&6&lAutor" with lore "&5&ltrolekkp &fz &c&lTR&f&lCODE" 
        set slot 6 of {_} to book named "&ePomoc ogolna" with lore "&7Kliknij aby dowiedziec sie o permisjach itp"
        open {_} to player

on inventory click:
    event-inventory is not player's inventory
    if name of event-inventory is "{@prefixgui}":
        cancel event
        click type is left mouse button
        if clicked slot is 2:
            set {_trcode.chat} to player
            set {_} to chest inventory with 1 rows named "{@prefixguizarzadzanie}"
            set slot (integers between 0 and 8) of {_} to black stained glass pane named " " with lore " "
            set slot 2 of {_} to lime concrete named "&aWlacz Czat"
            set slot 4 of {_} to paper named "&eWyczysc Czat"
            set slot 6 of {_} to red concrete named "&cWylacz Czat"
            set slot 8 of {_} to barrier named "&cWroć do gui"
            open {_} to player

on inventory click:
    event-inventory is not player's inventory
    if name of event-inventory is "{@prefixguizarzadzanie}":
        cancel event
        click type is left mouse button
        if clicked slot is 2:
            wait 2 tick
            set {trcode.chat.10} to false
            broadcast "&8-=-=-=-=-=-=-=[{@ip}&8]=-=-=-=-=-=-=-"
            broadcast ""
            broadcast "&7Chat zostal wlaczony przez &a%player%"
            broadcast ""
            broadcast "&8-=-=-=-=-=-=-=[{@ip}&8]=-=-=-=-=-=-=-"
            close inventory of player
        if clicked slot is 4:
            wait 2 tick
            loop 500 times:
                broadcast ""
            broadcast "&8-=-=-=-=-=-=-=[{@ip}&8]=-=-=-=-=-=-=-"
            broadcast ""
            broadcast "&7Chat zostal wyczyszczony przez &a%player%"
            broadcast ""
            broadcast "&8-=-=-=-=-=-=-=[{@ip}&8]=-=-=-=-=-=-=-"
            close inventory of player
        if clicked slot is 6:
            wait 2 tick
            set {trcode.chat.10} to true
            broadcast "&8-=-=-=-=-=-=-=[{@ip}&8]=-=-=-=-=-=-=-"
            broadcast ""
            broadcast "&7Chat zostal wylaczony przez &a%player%"
            broadcast ""
            broadcast "&8-=-=-=-=-=-=-=[{@ip}&8]=-=-=-=-=-=-=-"
            close inventory of player
        if clicked slot is 8:
            wait 2 tick
            set {_trcode.chat.gui} to player
            set {_} to chest inventory with 1 row named "{@prefixgui}" 
            set slot (integers between 0 and 8) of {_} to black stained glass pane named " " with lore " " 
            set slot 2 of {_} to lectern named "&6Zarzadzanie Chatem" with lore "&7kliknij aby zarzadzac chatem"
            set slot 4 of {_} to skull of "trolekkp" parsed as offline player named "&6&lAutor" with lore "&5&ltrolekkp &fz &c&lTR&f&lCODE" 
            set slot 6 of {_} to book named "&ePomoc ogolna" with lore "&7Kliknij aby dowiedziec sie o permisjach itp"
            open {_} to player


on inventory click:
    event-inventory is not player's inventory
    if name of event-inventory is "{@prefixgui}":
        cancel event
        click type is left mouse button
        if clicked slot is 6:
            wait 2 tick
            set {_trcode.chat.pomoc} to player
            set {_} to chest inventory with 1 row named "{@prefixguipomoc}" 
            set slot (integers between 0 and 8) of {_} to black stained glass pane named " " with lore " " 
            set slot 2 of {_} to lectern named "&6Zarzadzanie Chatem" with lore "&7kliknij aby zarzadzac chatem"
            set slot 4 of {_} to skull of "trolekkp" parsed as offline player named "&6&lAutor" with lore "&5&ltrolekkp &fz &c&lTR&f&lCODE" 
            set slot 6 of {_} to book named "&ePomoc ogolna" with lore "&7Kliknij aby dowiedziec sie o permisjach itp"
            open {_} to player

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
33 minuty temu, trolekp napisał:

tu daje kod nie dokaczony bo koncze gui z pomoca ale juz wysylam i tez nagranie co sie dzieje jakbys mogl poprawidz  nie ma bladow jak co i link do nagrania https://streamable.com/znrta6 te wlaczanie tez sie buguje z tym zarzadzanie jak z pomoca dlatego wylaczylem narazie zalaczanie

options:
  prefix: &8&l[&c&lTR&f&lCODE]&8
  prefixChat: &c&lTR&f&lCODE
  prefixgui: &8&k||||&7 &c&lTR&f&lCODE &8&k||||
  prefixguizarzadzanie: &8&k||||&7 &c&lTR&f&lCODE &8&k||||
  prefixguipomoc: &8&k||||&7 &c&lTR&f&lCODE &8&k||||
  ip: &c&lTR&f&lCODE
on chat:
	if {trcode.chat.10} is true:
		if player does not have permission "trcode.chat.bypass":
			cancel event
			send "&8* &7Chat jest obecnie &cwylaczony &8*"
			send title "&7&lChat jest &c&LOFF"
			stop
 
command /chat:
    permission: trcode.chat.admin
    permission message: {@prefix}: &7Nie posiadasz wymaganych permisji! &7(trcode.chat.admin)
    trigger:
        set {_trcode.chat.gui} to player
        set {_} to chest inventory with 1 row named "{@prefixgui}" 
        set slot (integers between 0 and 8) of {_} to black stained glass pane named " " with lore " " 
        set slot 2 of {_} to lectern named "&6Zarzadzanie Chatem" with lore "&7kliknij aby zarzadzac chatem"
        set slot 4 of {_} to skull of "trolekkp" parsed as offline player named "&6&lAutor" with lore "&5&ltrolekkp &fz &c&lTR&f&lCODE" 
        set slot 6 of {_} to book named "&ePomoc ogolna" with lore "&7Kliknij aby dowiedziec sie o permisjach itp"
        open {_} to player

on inventory click:
    event-inventory is not player's inventory
    if name of event-inventory is "{@prefixgui}":
        cancel event
        click type is left mouse button
        if clicked slot is 2:
            set {_trcode.chat} to player
            set {_} to chest inventory with 1 rows named "{@prefixguizarzadzanie}"
            set slot (integers between 0 and 8) of {_} to black stained glass pane named " " with lore " "
            set slot 2 of {_} to lime concrete named "&aWlacz Czat"
            set slot 4 of {_} to paper named "&eWyczysc Czat"
            set slot 6 of {_} to red concrete named "&cWylacz Czat"
            set slot 8 of {_} to barrier named "&cWroć do gui"
            open {_} to player

on inventory click:
    event-inventory is not player's inventory
    if name of event-inventory is "{@prefixguizarzadzanie}":
        cancel event
        click type is left mouse button
        if clicked slot is 2:
            wait 2 tick
            set {trcode.chat.10} to false
            broadcast "&8-=-=-=-=-=-=-=[{@ip}&8]=-=-=-=-=-=-=-"
            broadcast ""
            broadcast "&7Chat zostal wlaczony przez &a%player%"
            broadcast ""
            broadcast "&8-=-=-=-=-=-=-=[{@ip}&8]=-=-=-=-=-=-=-"
            close inventory of player
        if clicked slot is 4:
            wait 2 tick
            loop 500 times:
                broadcast ""
            broadcast "&8-=-=-=-=-=-=-=[{@ip}&8]=-=-=-=-=-=-=-"
            broadcast ""
            broadcast "&7Chat zostal wyczyszczony przez &a%player%"
            broadcast ""
            broadcast "&8-=-=-=-=-=-=-=[{@ip}&8]=-=-=-=-=-=-=-"
            close inventory of player
        if clicked slot is 6:
            wait 2 tick
            set {trcode.chat.10} to true
            broadcast "&8-=-=-=-=-=-=-=[{@ip}&8]=-=-=-=-=-=-=-"
            broadcast ""
            broadcast "&7Chat zostal wylaczony przez &a%player%"
            broadcast ""
            broadcast "&8-=-=-=-=-=-=-=[{@ip}&8]=-=-=-=-=-=-=-"
            close inventory of player
        if clicked slot is 8:
            wait 2 tick
            set {_trcode.chat.gui} to player
            set {_} to chest inventory with 1 row named "{@prefixgui}" 
            set slot (integers between 0 and 8) of {_} to black stained glass pane named " " with lore " " 
            set slot 2 of {_} to lectern named "&6Zarzadzanie Chatem" with lore "&7kliknij aby zarzadzac chatem"
            set slot 4 of {_} to skull of "trolekkp" parsed as offline player named "&6&lAutor" with lore "&5&ltrolekkp &fz &c&lTR&f&lCODE" 
            set slot 6 of {_} to book named "&ePomoc ogolna" with lore "&7Kliknij aby dowiedziec sie o permisjach itp"
            open {_} to player


on inventory click:
    event-inventory is not player's inventory
    if name of event-inventory is "{@prefixgui}":
        cancel event
        click type is left mouse button
        if clicked slot is 6:
            wait 2 tick
            set {_trcode.chat.pomoc} to player
            set {_} to chest inventory with 1 row named "{@prefixguipomoc}" 
            set slot (integers between 0 and 8) of {_} to black stained glass pane named " " with lore " " 
            set slot 2 of {_} to lectern named "&6Zarzadzanie Chatem" with lore "&7kliknij aby zarzadzac chatem"
            set slot 4 of {_} to skull of "trolekkp" parsed as offline player named "&6&lAutor" with lore "&5&ltrolekkp &fz &c&lTR&f&lCODE" 
            set slot 6 of {_} to book named "&ePomoc ogolna" with lore "&7Kliknij aby dowiedziec sie o permisjach itp"
            open {_} to player

 

naprawilem zamykam

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
41 minut temu, trolekp napisał:

tu daje kod nie dokaczony bo koncze gui z pomoca ale juz wysylam i tez nagranie co sie dzieje jakbys mogl poprawidz  nie ma bladow jak co i link do nagrania https://streamable.com/znrta6 te wlaczanie tez sie buguje z tym zarzadzanie jak z pomoca dlatego wylaczylem narazie zalaczanie

options:
  prefix: &8&l[&c&lTR&f&lCODE]&8
  prefixChat: &c&lTR&f&lCODE
  prefixgui: &8&k||||&7 &c&lTR&f&lCODE &8&k||||
  prefixguizarzadzanie: &8&k||||&7 &c&lTR&f&lCODE &8&k||||
  prefixguipomoc: &8&k||||&7 &c&lTR&f&lCODE &8&k||||
  ip: &c&lTR&f&lCODE
on chat:
	if {trcode.chat.10} is true:
		if player does not have permission "trcode.chat.bypass":
			cancel event
			send "&8* &7Chat jest obecnie &cwylaczony &8*"
			send title "&7&lChat jest &c&LOFF"
			stop
 
command /chat:
    permission: trcode.chat.admin
    permission message: {@prefix}: &7Nie posiadasz wymaganych permisji! &7(trcode.chat.admin)
    trigger:
        set {_trcode.chat.gui} to player
        set {_} to chest inventory with 1 row named "{@prefixgui}" 
        set slot (integers between 0 and 8) of {_} to black stained glass pane named " " with lore " " 
        set slot 2 of {_} to lectern named "&6Zarzadzanie Chatem" with lore "&7kliknij aby zarzadzac chatem"
        set slot 4 of {_} to skull of "trolekkp" parsed as offline player named "&6&lAutor" with lore "&5&ltrolekkp &fz &c&lTR&f&lCODE" 
        set slot 6 of {_} to book named "&ePomoc ogolna" with lore "&7Kliknij aby dowiedziec sie o permisjach itp"
        open {_} to player

on inventory click:
    event-inventory is not player's inventory
    if name of event-inventory is "{@prefixgui}":
        cancel event
        click type is left mouse button
        if clicked slot is 2:
            set {_trcode.chat} to player
            set {_} to chest inventory with 1 rows named "{@prefixguizarzadzanie}"
            set slot (integers between 0 and 8) of {_} to black stained glass pane named " " with lore " "
            set slot 2 of {_} to lime concrete named "&aWlacz Czat"
            set slot 4 of {_} to paper named "&eWyczysc Czat"
            set slot 6 of {_} to red concrete named "&cWylacz Czat"
            set slot 8 of {_} to barrier named "&cWroć do gui"
            open {_} to player

on inventory click:
    event-inventory is not player's inventory
    if name of event-inventory is "{@prefixguizarzadzanie}":
        cancel event
        click type is left mouse button
        if clicked slot is 2:
            wait 2 tick
            set {trcode.chat.10} to false
            broadcast "&8-=-=-=-=-=-=-=[{@ip}&8]=-=-=-=-=-=-=-"
            broadcast ""
            broadcast "&7Chat zostal wlaczony przez &a%player%"
            broadcast ""
            broadcast "&8-=-=-=-=-=-=-=[{@ip}&8]=-=-=-=-=-=-=-"
            close inventory of player
        if clicked slot is 4:
            wait 2 tick
            loop 500 times:
                broadcast ""
            broadcast "&8-=-=-=-=-=-=-=[{@ip}&8]=-=-=-=-=-=-=-"
            broadcast ""
            broadcast "&7Chat zostal wyczyszczony przez &a%player%"
            broadcast ""
            broadcast "&8-=-=-=-=-=-=-=[{@ip}&8]=-=-=-=-=-=-=-"
            close inventory of player
        if clicked slot is 6:
            wait 2 tick
            set {trcode.chat.10} to true
            broadcast "&8-=-=-=-=-=-=-=[{@ip}&8]=-=-=-=-=-=-=-"
            broadcast ""
            broadcast "&7Chat zostal wylaczony przez &a%player%"
            broadcast ""
            broadcast "&8-=-=-=-=-=-=-=[{@ip}&8]=-=-=-=-=-=-=-"
            close inventory of player
        if clicked slot is 8:
            wait 2 tick
            set {_trcode.chat.gui} to player
            set {_} to chest inventory with 1 row named "{@prefixgui}" 
            set slot (integers between 0 and 8) of {_} to black stained glass pane named " " with lore " " 
            set slot 2 of {_} to lectern named "&6Zarzadzanie Chatem" with lore "&7kliknij aby zarzadzac chatem"
            set slot 4 of {_} to skull of "trolekkp" parsed as offline player named "&6&lAutor" with lore "&5&ltrolekkp &fz &c&lTR&f&lCODE" 
            set slot 6 of {_} to book named "&ePomoc ogolna" with lore "&7Kliknij aby dowiedziec sie o permisjach itp"
            open {_} to player


on inventory click:
    event-inventory is not player's inventory
    if name of event-inventory is "{@prefixgui}":
        cancel event
        click type is left mouse button
        if clicked slot is 6:
            wait 2 tick
            set {_trcode.chat.pomoc} to player
            set {_} to chest inventory with 1 row named "{@prefixguipomoc}" 
            set slot (integers between 0 and 8) of {_} to black stained glass pane named " " with lore " " 
            set slot 2 of {_} to lectern named "&6Zarzadzanie Chatem" with lore "&7kliknij aby zarzadzac chatem"
            set slot 4 of {_} to skull of "trolekkp" parsed as offline player named "&6&lAutor" with lore "&5&ltrolekkp &fz &c&lTR&f&lCODE" 
            set slot 6 of {_} to book named "&ePomoc ogolna" with lore "&7Kliknij aby dowiedziec sie o permisjach itp"
            open {_} to player

 

To ty kolorków żadnych nie masz w vsc? https://marketplace.visualstudio.com/items?itemName=ayhamalali.Sk-VSC

set {_trcode.chat.gui} to player

do czego ci ta linijka?

wait 2 seconds

zbędne

broadcast

Zaśmieca logi/konsole, lepiej send "" to all players

Dlaczego nie użyłes funkcji, kiedy wywołałeś 1 gui 2 albo 3 razy?

Poprawione w większości, powinno działać tak samo

Edytowane przez Fendi
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
1 godzinę temu, Fendi napisał:

To ty kolorków żadnych nie masz w vsc? https://marketplace.visualstudio.com/items?itemName=ayhamalali.Sk-VSC

set {_trcode.chat.gui} to player

do czego ci ta linijka?

wait 2 seconds

zbędne

broadcast

Zaśmieca logi/konsole, lepiej send "" to all players

Dlaczego nie użyłes funkcji, kiedy wywołałeś 1 gui 2 albo 3 razy?

Poprawione w większości, powinno działać tak samo

co do kolorkow to mam sk-vsc ale kolorki coś mi nie dzialaja -_- tylko motyw bo nic mi sie nie podswietla

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
16 godzin temu, trolekp napisał:

co do kolorkow to mam sk-vsc ale kolorki coś mi nie dzialaja -_- tylko motyw bo nic mi sie nie podswietla

bo musisz jeszcze je wybrać

 

15 godzin temu, Fendi napisał:

bo musisz jeszcze je wybrać

image.png.f296b24a589546927ea4bdb30cfc9a99.png

image.png.d72477d6e73473e21aff6e3852315e1d.png

Polecam drugi albo trzeci

ivall

Łączę posty

Notatka dodana przez ivall

Odnośnik do komentarza
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ę...