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.

Custom player head in GUI?

Discussion in 'Skript' started by iStopcontact, Feb 18, 2017.

Thread Status:
Not open for further replies.
  1. iStopcontact

    iStopcontact Member

    Joined:
    Feb 18, 2017
    Messages:
    111
    Likes Received:
    2
    Heey,

    I am working on a own network and i am skripting some plugins for my server.
    Now i want to have a gui and a option they can go to a menu to see al there personal stats.
    I want the icon of that menu as the head of there skin.

    So they open the gui, and see there head.
    I know how to do it with a steve head but not a specefic player head, and a head that is different for everybody.
     
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,185
    Likes Received:
    215
    Like this maybe?

    Code (Skript):
    1.         set {_p} to "%player%" parsed as player
    2.         open chest with 1 rows named "&8[ &aMenu &8]" to player
    3.         play raw sound "random.click" at player with pitch 1 volume 1
    4.         format slot 0 of player with skull of {_p} named "&7Player &8: &f%player%"
     
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,185
    Likes Received:
    215
    Yhea, but when i add this to my code it still give's me an error:
    [​IMG]
     
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,185
    Likes Received:
    215
    already add this code?
    Code (Skript):
    1. set {_p} to "%player%" parsed as player
     
  5. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,185
    Likes Received:
    215
    Yes this is what i have at the moment:

    Code (Skript):
    1. command /navigator [<text>]:
    2.     permission: {@member}
    3.     permission message: {@PREFIX} &4You dont have permission for this
    4.     trigger:
    5.         set {_p} to "%player%" parsed as player
    6.         open chest with 1 rows named "&8[ &aMenu &8]" to player
    7.         play raw sound "random.click" at player with pitch 1 volume 1
    8.         format slot 0 of player with skull of {_p} named "&7Player &8; &f%player%"
     
  6. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,185
    Likes Received:
    215
    hmm, i worked correctly with that code.
    here my half code, what your addon used?

    Code (Skript):
    1. command /menu:
    2.     trigger:
    3.         wait 2 tick
    4.         set {_p} to "%player%" parsed as player
    5.         open chest with 1 rows named "&8[ &aMenu &8]" to player
    6.         play raw sound "random.click" at player with pitch 1 volume 1
    7.         format slot 0 of player with skull of {_p} named "&7Player &8: &f%player%" with lore "&aClick to see your stats" to close then run [make player execute command "/stats"]
    8.         format slot 1 of player with black glass pane named "&f" to be unstealable
    9.         format slot 2 of player with chest named "&7[ &eRegular Shop &7]" with lore "&aBuy Item!||&aUsing balance" to close then run [make player execute "/shop"]
    10.         format slot 3 of player with eye of ender named "&7[ &6Premium Shop &7]" with lore "&aInteresting Item||&aUsing Cash" to close then run [make player execute "/shoppremi"]
     
  7. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,185
    Likes Received:
    215
    Use this, it's working perfectly :

    Code (Skript):
    1. format slot 0 of player with skull of ("Pseudo of your player." parsed as an offline player) to be unstealable
     
    • Like Like x 1
  8. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,185
    Likes Received:
    215
    Thanks, i used your whole code and it worked,
    So i removed some lines and its still working
    Thanks <3
     
Thread Status:
Not open for further replies.

Share This Page

Loading...