Custom player head 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.

iStopcontact

Member
Feb 18, 2017
113
2
18
23
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.
 
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.

Like this maybe?

code_language.skript:
        set {_p} to "%player%" parsed as player
        open chest with 1 rows named "&8[ &aMenu &8]" to player
        play raw sound "random.click" at player with pitch 1 volume 1
        format slot 0 of player with skull of {_p} named "&7Player &8: &f%player%"
 
Like this maybe?

code_language.skript:
        set {_p} to "%player%" parsed as player
        open chest with 1 rows named "&8[ &aMenu &8]" to player
        play raw sound "random.click" at player with pitch 1 volume 1
        format slot 0 of player with skull of {_p} named "&7Player &8: &f%player%"
Yhea, but when i add this to my code it still give's me an error:
lBuaH3T.png
 
already add this code?
code_language.skript:
set {_p} to "%player%" parsed as player
Yes this is what i have at the moment:

code_language.skript:
command /navigator [<text>]:
    permission: {@member}
    permission message: {@PREFIX} &4You dont have permission for this
    trigger:
        set {_p} to "%player%" parsed as player
        open chest with 1 rows named "&8[ &aMenu &8]" to player
        play raw sound "random.click" at player with pitch 1 volume 1
        format slot 0 of player with skull of {_p} named "&7Player &8; &f%player%"
 
Yes this is what i have at the moment:

code_language.skript:
command /navigator [<text>]:
    permission: {@member}
    permission message: {@PREFIX} &4You dont have permission for this
    trigger:
        set {_p} to "%player%" parsed as player
        open chest with 1 rows named "&8[ &aMenu &8]" to player
        play raw sound "random.click" at player with pitch 1 volume 1
        format slot 0 of player with skull of {_p} named "&7Player &8; &f%player%"
hmm, i worked correctly with that code.
here my half code, what your addon used?

code_language.skript:
command /menu:
    trigger:
        wait 2 tick
        set {_p} to "%player%" parsed as player
        open chest with 1 rows named "&8[ &aMenu &8]" to player
        play raw sound "random.click" at player with pitch 1 volume 1
        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"]
        format slot 1 of player with black glass pane named "&f" to be unstealable
        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"]
        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"]
 
Use this, it's working perfectly :

code_language.skript:
format slot 0 of player with skull of ("Pseudo of your player." parsed as an offline player) to be unstealable
 
  • Like
Reactions: BOMBERC4
hmm, i worked correctly with that code.
here my half code, what your addon used?

code_language.skript:
command /menu:
    trigger:
        wait 2 tick
        set {_p} to "%player%" parsed as player
        open chest with 1 rows named "&8[ &aMenu &8]" to player
        play raw sound "random.click" at player with pitch 1 volume 1
        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"]
        format slot 1 of player with black glass pane named "&f" to be unstealable
        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"]
        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"]
Thanks, i used your whole code and it worked,
So i removed some lines and its still working
Thanks <3
 
Status
Not open for further replies.