Hello.
I have been trying to make a punish GUI for my anticheat, it will show all online players and when you click on a player, It will open another GUI with some other tools(ban, kick, other stuff).
Here is my code so far:
I have been trying to make a punish GUI for my anticheat, it will show all online players and when you click on a player, It will open another GUI with some other tools(ban, kick, other stuff).
Here is my code so far:
Code:
if arg 1 is "punish":
if arg 2 is not set:
wait 3 ticks
open chest with 6 rows named "&6&lPunish Player" to player
set {_n} to 0
loop all players:
format slot {_n} of player with head of loop-player named "&e&lPunish %loop-player%" to close then run [make player execute command "/anticheat punish %loop-player%"]
add 1 to {_n}
format slot 53 of player with eye of ender named "&e&lPunish Offline Player" to close then run [send "&6&lAnticheat &e&lDo ""/anticheat punish <player name>"" to punish an offline player!"]
[CODE/]The problem is, when I click on a player's head it will not go to that menu to punish that player, it will go to the menu to punish the player using the GUI. Help
Server Version: 1.16.4
Skript Version: 2.5.3
Addons: SkQuery, Skellet, SkRayFall, TuSKe[/B]
Last edited: