Mam GUI (kod podam na samym dole) i chodzi mi o to że jak się kliknie na item (koxy) wyświetli się wiadomość na czacie i wyśle komende (na dole strony) wie ktoś jak to zrobić?
command /v [<text>]:
trigger:
if player has permission "vip":
open chest with 3 rows named "&6 Itemy na gildie" to player
set {_i} to 0
loop 10 times:
format slot {_i} of player with gray glass pane named " " to be unstealable
add 1 to {_i}
set {_i} to 17
loop 10 times:
format slot {_i} of player with gray glass pane named " " to be unstealable
add 1 to {_i}
#10-16
format slot 10 of player with bookshelf named "&7Biblioteczki" with lore "Potrzebujesz: &716" to be unstealable
format slot 11 of player with bookshelf named "&7Biblioteczki" with lore "Potrzebujesz: &716" to be unstealable
format slot 12 of player with enchanted golden apple named "&7KOXY" with lore "Potrzebujesz: &716":
format slot 13 of player with enchanted golden apple named "&7KOXY" with lore "Potrzebujesz: &716" to be unstealable
format slot 14 of player with enchanted golden apple named "&7KOXY" with lore "Potrzebujesz: &716" to be unstealable
format slot 15 of player with bookshelf named "&7Biblioteczki" with lore "Potrzebujesz: &716" to be unstealable
format slot 16 of player with bookshelf named "&7Biblioteczki" with lore "Potrzebujesz: &716" to be unstealable
I chcę by wysłało np send
send "tekst"
i żeby poszła dalsza komenda :
aliases: vanish
trigger:
if {v::%player%} is not set:
set {v::%player%} to true
send "&8» Aktywowano vanisha!"
loop all players:
if loop-player don't have permission "crido.vanishshow":
add loop-player to {_g::*}
hide player from {_g::*}
stop
if {v::%player%} is set:
clear {v::%player%}
send "&8» Zdezaktywowano vanisha"
reveal player to all players
stop
on pickup:
if {v::%player%} is set:
cancel event
on damage:
if {v::%attacker%} is set:
cancel event
send "&8» Hej hej hej ! jestes na vanishu wylacz go jak chcesz kogos atakowac !"
on quit:
if {v::%player%} is set:
clear {v::%player%}
Pytanie
Crido 5
Cześć,
Mam GUI (kod podam na samym dole) i chodzi mi o to że jak się kliknie na item (koxy) wyświetli się wiadomość na czacie i wyśle komende (na dole strony) wie ktoś jak to zrobić?
I chcę by wysłało np send
send "tekst"
i żeby poszła dalsza komenda :
aliases: vanish trigger: if {v::%player%} is not set: set {v::%player%} to true send "&8» Aktywowano vanisha!" loop all players: if loop-player don't have permission "crido.vanishshow": add loop-player to {_g::*} hide player from {_g::*} stop if {v::%player%} is set: clear {v::%player%} send "&8» Zdezaktywowano vanisha" reveal player to all players stop on pickup: if {v::%player%} is set: cancel event on damage: if {v::%attacker%} is set: cancel event send "&8» Hej hej hej ! jestes na vanishu wylacz go jak chcesz kogos atakowac !" on quit: if {v::%player%} is set: clear {v::%player%}Edytowane przez CridoOdnośnik do komentarza
https://skript.pl/temat/32321-problem-z-gui/Udostępnij na innych stronach
6 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ą.