hello, i need a help making a GUI .
version is 1.16.5
Skript 2.6 , SkQuery v4.1.4, MorkazSk v1.2, skRayFall v1.9.25, skript-gui v1.3-beta1 ,Skellett v1.9.11
i CAN'T use Tuske Because of error, so i installed Skript-gui (but idk how it works)
the Gui and click worked
BUT , when I open the Gui it no works i can take ( it shouldn't to be stealable) the item but can't make execute the command
using on command works but i don't want to use because they might use in anywhere ...
so for that reason i wanted to put in a entity and only can access the GUI clicking the entity.
version is 1.16.5
Skript 2.6 , SkQuery v4.1.4, MorkazSk v1.2, skRayFall v1.9.25, skript-gui v1.3-beta1 ,Skellett v1.9.11
i CAN'T use Tuske Because of error, so i installed Skript-gui (but idk how it works)
the Gui and click worked
Code:
on click on armor stand:
if name of clicked entity is "gunshop":
open chest with 3 rows named "&cGUN SHOP" to player
if player's money is less than 270:
format slot 0 of player with wooden shovel named "&7MP5" with lore "&fType: &bSMG" and "&fAmmo: &cRed Hawk" and "&fPrice: &c$270 You can not afford" to be unstealable
if player's money is more than or equal to 270:
format slot 0 of player with wooden shovel named "&7MP5" with lore "&fType: &bSMG" and "&fAmmo: &cRed Hawk" and "&fPrice: &a$270" to close then run [console command "shot give %player% mp5"]->[subtract 270 from player's money]->[send "&aYou bought a &7MP5"]
BUT , when I open the Gui it no works i can take ( it shouldn't to be stealable) the item but can't make execute the command
using on command works but i don't want to use because they might use in anywhere ...
so for that reason i wanted to put in a entity and only can access the GUI clicking the entity.