1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Skript GUI HELP

Discussion in 'Skript' started by RealNetwork, Feb 20, 2021.

Tags:
Thread Status:
Not open for further replies.
  1. RealNetwork

    RealNetwork Member

    Joined:
    Sep 8, 2020
    Messages:
    2
    Likes Received:
    0
    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:

    Code (Text):
    1. if arg 1 is "punish":
    2.       if arg 2 is not set:
    3.         wait 3 ticks
    4.         open chest with 6 rows named "&6&lPunish Player" to player
    5.         set {_n} to 0
    6.         loop all players:
    7.           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%"]
    8.           add 1 to {_n}
    9.         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!"]
    10.  
    11. [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
    12.  
    13. Server Version: 1.16.4
    14. Skript Version: 2.5.3
    15. Addons: SkQuery, Skellet, SkRayFall, TuSKe[/B]
     
    #1 RealNetwork, Feb 20, 2021
    Last edited: Feb 20, 2021
  2. Time4Games

    Time4Games Active Member

    Joined:
    Jul 25, 2020
    Messages:
    203
    Likes Received:
    4
    can you explain the problem a bit better?
    "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"
    a bit hard to understand what you are talking about
     
  3. RealNetwork

    RealNetwork Member

    Joined:
    Sep 8, 2020
    Messages:
    2
    Likes Received:
    0
    I fixed my problem by switching to TuSKe's GUIS. Also sorry for not explaining the problem better, as I got my thread marked as spam and could no longer edit it :emoji_frowning:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...