Player head click in gui?

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Apr 17, 2021
1
0
1
23
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:')
 
Prøv med
Code:
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"
 
Status
Not open for further replies.