Solved [SOLVED]About GUI

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

HKPNW-Owner

Member
Feb 2, 2017
33
0
6
27
Hello,
I wanna ask that is it possible that make a gui that can't exit by esc(key) but only by
code_language.skript:
"format slot 1 of player with red glass named "Something" to close"

ThankYou!

HKNoob
 
Last edited:
You can do it by setting a *temporary* variable


code_language.skript:
command /test:
  trigger:
    set {cant.close.gui.%executor%} to true
    open chest with 1 rows named "Test" to executor
    format slot 1 of executor with red glass named "Something" to close then run [clear {cant.close.gui.%executor%}]
    stop

#!!!
on inventory close:
  if {cant.close.gui.%player%} is not set:
    stop
  else if {cant.close.gui.%player%} is true:
    open chest with 1 rows named "Test" to executor
    format slot 1 of executor with red glass named "Something" to close then run [clear {cant.close.gui.%executor%}]
    stop
#!!!
 
Last edited:
You can do it by setting a *temporary* variable


code_language.skript:
command /test:
  trigger:
    set {cant.close.gui.%executor%} to true
    open chest with 1 rows named "Test" to executor
    format slot 1 of executor with red glass named "Something" to close then run [clear {cant.close.gui.%executor%}]
    stop

#!!!
on inventory close:
  if {cant.close.gui.%player%} is not set:
    stop
  else if {cant.close.gui.%player%} is true:
    open chest with 1 rows named "Test" to executor
    format slot 1 of executor with red glass named
    stop
#!!!
Thanks a lot bro :emoji_grinning:
 
Status
Not open for further replies.