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.

Player head click in gui?

Discussion in 'Skript' started by Jonathan William, Apr 17, 2021.

Thread Status:
Not open for further replies.
  1. Jonathan William

    Joined:
    Apr 17, 2021
    Messages:
    1
    Likes Received:
    0
    i have this problem with my gang skript, there is like a promotion system where you have to click a players head in a gui to promote them.
    but i dont know how to track if a player head is clicked

    here is my skript

    if clicked item = player head:
    if {bande.owner.%{bande.%uuid of player%}%} is player:
    set {_target} to (name of clicked item)
    bandeManage(player, {_target})


    this is that error i get

    Can't compare 'clicked item' with an item type (gang.sk, line 419: if clicked item = player head:')
     
  2. Prøv med
    Code (Text):
    1. if clicked slot is a player skull
    Ellers kan du associere en variabel til den enkelte spiller, og tjekke for den variable i stedet for "player skull"
     
  3. Julius Ohly

    Julius Ohly Member

    Joined:
    Mar 20, 2021
    Messages:
    19
    Likes Received:
    0
    Jeg forstär at i gerne vil tale dansk her, men vær søde at tale engelsk her!
     
Thread Status:
Not open for further replies.

Share This Page

Loading...