Aller au contenu
  • 0

Besoin d'aide pour un Menu GUI


Question

Posté(e)

Bonjour, tout le monde

Je suis débutant sur Skript,

J'ai créer un menu GUI qui me permet d'executer des commande sur moi et sur le serveur (gm1;gm2 etc; clear ;temps etc

 

 

Maintenant j'aimerai faire la deuxième page sur le Menu en m'étant la tête de tout les joueur du serveur et quand je clique sur la tête d'un joueur plusieurs commande son disponible (gm1;gm2;tp;kick;ban etc)

Il me faut pas un skript mais juste comment faire et la je pourrais faire tout le skript

 

Désoler pour les faute x)

 

Merci d'avance de votre patience et de votre aides

 

Serkox tu ma répondu ça sur un ancien topic

 

set {_slot} to 0
       loop all players:
           wait 1 tick
           format slot {_slot} of player with loop-player's skull named "&b(&6%loop-player%&b)" with lore "&e» &bJoueur connecté depuis &6%difference between {temps.connecté.%loop-player%} and now%" to be unstealable
           add 1 to {_slot}

 

mais quand je le mais ça ne fais rien

voici tout le code de mon programe

 

command /m:
   trigger:
       open chest with 6 rows named "&6Menu                          &4Page 1" to player
       wait 1 tick
       format slot 0 of player with 1 363 named "&6Gamemode &2Survie" with lore "&5Clic pour te mettre en &2Survie||&4Tu dois être op" to run [make player execute command "/gamemode 0"]
       format slot 1 of player with 1 45 named "&6Gamemode &2Créatif" with lore "&5Clic pour te mettre en &2Créatif||&4Tu dois être op" to run [make player execute command "/gamemode 1"]
       format slot 2 of player with 1 166 named "&6Gamemode &2Aventure" with lore "&5Clic pour te mettre en &2Aventure||&4Tu dois être op" to run [make player execute command "/gamemode 2"]
       format slot 3 of player with 1 449 named "&6Gamemode &2Spectateur" with lore "&5Clic pour te mettre en &2Spectateur||&4Tu dois être op" to run [make player execute command "/gamemode 3"]
       format slot 26 of player with 1 137 named "&6Give un &2Commande Block" with lore "&5Clic pour avoir un &2Commande Block||&4Tu dois être op" to run [make player execute command "/give %player% minecraft:command_block"]
       format slot 53 of player with 1 262 named "&6Quitter le &2menu" with lore "&5Clic pour quitter le &2menu||&4Pas besoin d'être op" to close
       format slot 9 of player with 1 349:3 named "&6Mettre le &2beau &6temps" with lore "&5Clic pour mettre le &2beau &5temps||&4&4Pas besoin d'être op" to run [make console execute command "/weather clear" and "say &4Il &4fait &2beau"]
       format slot 10 of player with 1 326 named "&6Mettre le &2mauvais &6temps" with lore "&5Clic pour mettre le &2mauvais &5temps||&4&4Pas besoin d'être op" to run [make console execute command "/weather rain" and "say &4Il &2pleut"]
       format slot 11 of player with 1 198 named "&6Mettre un temps &2orageux" with lore "&5Clic pour mettre un temps &2orageux||&4Tu dois être op" to run [make player execute command "/weather thunder"]
       format slot 18 of player with 1 160:4 named "&6Mette le &2Jour" with lore "&5Clic pour mettre la &2Jour||&4Pas besoin d'être op" to run [make console execute command "/time set 1000" and "say &4Il &4fait &2Jour"]
       format slot 19 of player with 1 160:15 named "&6Mette la &2Nuit" with lore "&5Clic pour mettre la &2Nuit||&4Pas besoin d'être op" to run [make console execute command "/time set 13000" and "say &4Il &4fait &2Nuit"]
       format slot 27 of player with 1 152 named "&6Pour te &2Clear" with lore "&5Clic pour te &2Clear||&4Pas besoin d'être op" to run [make console execute command "/clear %player%" and "say &4Tu &4à &4êtes &2Clear" and "give %player% minecraft:book"]
       format slot 45 of player with 1 213 named "&4Arrèt du serveur" with lore "&4Clic pour arrèter le serveur||&4Il faut être op" to run [make player execute command "stop"]
       format slot 28 of player with 1 46 named "&6Pour te &2Kill" with lore "&5Clic pour te &2Kill||&4Pas besoin d'être op" to run [make console execute command "kill %player%" and "give %player% minecraft:book"]
       format slot 47 of player with 1 397 named "&6Pour faire aparaitre un &2Squelette" with lore "&5Clic faire aparaitre un &2Squelette||&4Tu doit être op" to run [make player execute command "/summon minecraft:skeleton ~ ~ ~"]
       format slot 48 of player with 1 397:1 named "&6Pour faire aparaitre un &2Wither Squelette" with lore "&5Clic faire aparaitre un &2Wither Squelette||&4Tu doit être op" to run [make player execute command "/summon minecraft:wither_skeleton ~ ~ ~"]
       format slot 49 of player with 1 397:2 named "&6Pour faire aparaitre un &2Zombie" with lore "&5Clic faire aparaitre un &2Zombie||&4Tu doit être op" to run [make player execute command "/summon minecraft:zombie ~ ~ ~"]
       format slot 50 of player with 1 397:4 named "&6Pour faire aparaitre un &2Creeper" with lore "&5Clic faire aparaitre un &2Creeper||&4Tu doit être op" to run [make player execute command "/summon minecraft:creeper ~ ~ ~"]
       format slot 51 of player with 1 397:5 named "&6Pour faire aparaitre un &2Dragon" with lore "&5Clic faire aparaitre un &2Dragon||&4Tu doit être op" to run [make player execute command "/summon minecraft:ender_dragon ~ ~ ~"]
       format slot 40 of player with 1 331 named "&6Pour kill les &2Monstre" with lore "&5Clic kill les &2Monstre||&4Pas besoin d'être op" to run [make player execute command "kill @e[type=!Player]"]
       format slot 35 of player with 1 book named "&6Pour te give le livre du &2Menu" with lore "&5Clic pour te give le livre du &2Menu||&4Pas besoin d'être op" to run [make console execute command "clear %player% minecraft:book" and "give %player% minecraft:book"]
       format slot 8 of player with 1 439 named "&6Page suivante du &2Menu" with lore "&5Clic pour aller à la page suivante du &2Menu||&4Pas besoin d'être op" to run [make player execute command "/page2dumodmenu"]

command /page2dumodmenu:
   trigger:
       open chest with 6 rows named "&6Menu                          &4Page 2" to player
       wait 1 tick
       set {_slot} to 0
           loop all players:
               wait 1 tick
               format slot {_slot} of player with loop-player's skull named "&b(&6%loop-player%&b)" with lore "&e» &bJoueur connecté depuis &6%difference between {temps.connecté.%loop-player%} and now%" to be unstealable
               add 1 to {_slot}

4 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Bonjour,

Qu'est-ce que tu veux qu'on t'aide exactement ?

 

Est-ce qu'il te faut les comandes ? Par exemple tu clique sur le totem de la 1.9 (désolé je connais pas le nom), commande = /exemple.tuto

Tu veux que je creer ta commande /exemple.tuto

 

Mdrr' je me suis embrouiller, contente doi de la premier questions :D

×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.