probowalem dodać do skryptu z chatem ze jak chat jest off to jak go wylaczysz to zadrugim razem bedzie pisalo ze chat juz jest wylaczony tak samo z wlaczaniem tutaj daje kod i nie wiem czemu ale podwojnie mi wysyla ze chat zostal zalaczony
variables:
{trcode.chat} = false
options:
prefix: &8&l[&c&lTR&f&lCODE]&8
prefixChat: &c&lTR&f&lCODE
prefixgui: &8&k||||&7 &c&lTR&f&lCODE &aGUI &8&k||||
prefixguizarzadzanie: &8&k||||&7 &c&lTR&f&lCODE &aZarzadzanie Chatem &8&k||||
prefixguipomoc: &8&k||||&7 &c&lTR&f&lCODE &aPomoc &8&k||||
ip: &c&lTR&f&lCODE
on chat:
if {trcode.chat} 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&LWylaczony"
stop
command /chat:
permission: trcode.chat.admin
permission message: {@prefix}: &7Nie posiadasz wymaganych permisji! &7(trcode.chat.admin)
trigger:
set {_trcode.chat} 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<rolekkp &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} 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} 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} 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<rolekkp &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 4 of {_} to banner pattern named "&6&lPermisje" with lore "&6&lKliknij aby zobaczyc"
open {_} to player
on inventory click:
event-inventory is not player's inventory
if name of event-inventory is "{@prefixguipomoc}":
cancel event
click type is left mouse button
if clicked slot is 4:
close player's inventory
wait 1 tick
send "&8«&6*&8»&8&m--------&8«&6*&8»&6 &l Permisje &8«&6*&8»&8&m--------&8«&6*&8»"
send " "
send "&6permisja na używanie /chat: &l&ctrcode.chat.admin"
send "&6permisja na pisanie gdy chat jest wylaczony: &l&ctrcode.chat.bypass"
send " "
send "&8«&6*&8»&8&m--------&8«&6*&8»&6 &l Permisję &8«&6*&8»&8&m--------&8«&6*&8»"
Pytanie
trolekp 0
probowalem dodać do skryptu z chatem ze jak chat jest off to jak go wylaczysz to zadrugim razem bedzie pisalo ze chat juz jest wylaczony tak samo z wlaczaniem tutaj daje kod i nie wiem czemu ale podwojnie mi wysyla ze chat zostal zalaczony
variables: {trcode.chat} = false options: prefix: &8&l[&c&lTR&f&lCODE]&8 prefixChat: &c&lTR&f&lCODE prefixgui: &8&k||||&7 &c&lTR&f&lCODE &aGUI &8&k|||| prefixguizarzadzanie: &8&k||||&7 &c&lTR&f&lCODE &aZarzadzanie Chatem &8&k|||| prefixguipomoc: &8&k||||&7 &c&lTR&f&lCODE &aPomoc &8&k|||| ip: &c&lTR&f&lCODE on chat: if {trcode.chat} 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&LWylaczony" stop command /chat: permission: trcode.chat.admin permission message: {@prefix}: &7Nie posiadasz wymaganych permisji! &7(trcode.chat.admin) trigger: set {_trcode.chat} 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<rolekkp &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} 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} 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} 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<rolekkp &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 4 of {_} to banner pattern named "&6&lPermisje" with lore "&6&lKliknij aby zobaczyc" open {_} to player on inventory click: event-inventory is not player's inventory if name of event-inventory is "{@prefixguipomoc}": cancel event click type is left mouse button if clicked slot is 4: close player's inventory wait 1 tick send "&8«&6*&8»&8&m--------&8«&6*&8»&6 &l Permisje &8«&6*&8»&8&m--------&8«&6*&8»" send " " send "&6permisja na używanie /chat: &l&ctrcode.chat.admin" send "&6permisja na pisanie gdy chat jest wylaczony: &l&ctrcode.chat.bypass" send " " send "&8«&6*&8»&8&m--------&8«&6*&8»&6 &l Permisję &8«&6*&8»&8&m--------&8«&6*&8»"
Odnośnik do komentarza
Udostępnij na innych stronach
0 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.