Hello
I have this skript
and how to make a 2 gui page if players are in {_temp} is 0
I have this skript
and how to make a 2 gui page if players are in {_temp} is 0
code_language.skript:
command /targ [<text>]:
aliases: /sklep, /bazar, /rynek
trigger:
set {_temp} to 0
open chest with 4 rows named " &2&lPlayers Shop" to player
wait 3 tick
loop all players:
if loop-player have permission "elite":
if (size of {targ.itemy.%loop-player%::*}) > 0:
set player's current inventory's slot {_temp} to {@TargItemWeteranILegenda} named "&aTarg: &6&l%loop-player%" with lore "&8Wystawione:&7 %size of {targ.itemy.%loop-value%::*}%/27"
add 1 to {_temp}
if {_temp} > 0:
set player's current inventory's slot 35 to arrow named "&6Next Page"
loop all players:
if loop-player don't have permission "elite":
if (size of {targ.itemy.%loop-player%::*}) > 0:
set player's current inventory's slot {_temp} to {@TargItemGracz} named "&aTarg: &e&l%loop-player%" with lore "&8Wystawione:&7 %size of {targ.itemy.%loop-value%::*}%/27"
add 1 to {_temp}
if {_temp} > 0:
set player's current inventory's slot 35 to arrow named "&6Next Page"