Aller au contenu

Question

Posté(e) (modifié)

Bonjours Chers internautes ^^, je vous contacte a titre d'information et d'aide, effectivement comme vous avez pu le voir dans le titre, j'ai besoin d'aide sur un menu bien précis, c'est donc pourquoi je vous donnerais, des images, une description détailler de ce que je voudrais.

voici le code du menu en question :
 

on click with light green dye:
	if player's tool is a light green dye named "&9&lVisibilité &7➤ Clic-droit" or "&9&lVisibility &7➤ Right-Click":
		make player execute command "/showp"
		if {showp.%uuid of player%} is false:
			set {showp.%uuid of player%} to true
			set {infoshowp.%uuid of player%} to "&aACTIF"
		else if {showp.%uuid of player%} is true:
			set {showp.%uuid of player%} to false
			set {infoshowp.%uuid of player%} to "&cINACTIF"
on join:
	if {showp.%uuid of player%} is not set:
		set {showp.%uuid of player%} to false
	else:
		set {showp.%uuid of player%} to false

command /showp:
	trigger:
		open chest with 5 row named "&9&lVisibilité" to player
		wait 3 ticks
		format slot 0 of player with purple glass named " " to be unstealable
		format slot 1 of player with purple glass named " " to be unstealable
		format slot 7 of player with purple glass named " " to be unstealable
		format slot 8 of player with purple glass named " " to be unstealable
		format slot 9 of player with purple glass named " " to be unstealable
		# LISTE DES OBJET
		
		format slot 20 of player with snowball named "&eAucun joueur" with lore "&7Cachez &ctout le monde||&7sur les hubs." to be unstealable
		format slot 22 of player with ender pearl named "&eUniquement les amis" with lore "&7Affichez &6uniquement les amis||&7sur les hubs." to be unstealable
		format slot 24 of player with eyes of ender named "&eTout le monde" with lore "&7Affichez &atout le monde||&7sur les hubs." to be unstealable
		format slot 29 of player with gray dye named "&7» &cDésactivé &7«" with lore "||&6&l» &eCliquez pour changer" to be unstealable
		format slot 31 of player with gray dye named "&7» &cDésactivé &7«" with lore "||&6&l» &eCliquez pour changer" to be unstealable
		format slot 33 of player with light green dye named "&7» &aActivé &7«" with lore "||&6&l» &eCliquez pour changer" to be unstealable
		# --------------------
		format slot 17 of player with purple glass named " " to be unstealable
		format slot 27 of player with purple glass named " " to be unstealable
		format slot 35 of player with purple glass named " " to be unstealable
		format slot 36 of player with purple glass named " " to be unstealable
		format slot 37 of player with purple glass named " " to be unstealable
		format slot 43 of player with purple glass named " " to be unstealable
		format slot 44 of player with purple glass named " " to be unstealable
		
# if {showp.%uuid of player%} is false:
			# reveal all players to player
		# else if {showp.%uuid of player%} is true:
			# hide all players to player

Dans ce code on peut voir que le menu en lui-même est déjà fait, ce qui ressemblerais a ca dans Minecraft :
[Photo donné]

J'aimerais que si on clique sur par exemple le Gray dye du milieu les joueur sont cachez sauf les Staff [par je pense une variable du type {staff.%uuid of player%}] et que le menu en lui même ce mette à jour c'est a dire qu'il change le Gray dye en vert et le vert en Gray dye ^^

Je vous remercie d'avance ^^.
 

2019-04-12_19.36.58.png

 

INFORMATION DES VERSION:


Version mc : 1.8

version Skript : 2.2 dev27

 

Modifié par MathisGames94
Mise en place des version

3 réponses à cette question

Messages recommandés

  • 0
Posté(e) (modifié)
Il y a 17 heures, KneaXy a dit :

au pire, jsp si tu peux faire ça mais 


loop all players:
	if loop-player hasn't permission "test.sk":
		stop
	else:
		clear {_Hide::*}
		wait a tick
		add loop-player to {_Hide::*}

et un truc genre

hide {_Hide::*} from players

ge sé pa si sa march :c 

Je vais tester et je te dit ça, merci quand-même ^^

---------------
Après le test le problême c'est que mon menu ne change pas ma Light green dye ne change pas de place et je ne sait pas comment faire 😕 

Modifié par MathisGames94
Teste du code
  • 0
Posté(e)

J'ai trouvé la solution, je la partage si besoin ^^

 

 

command /option:
	trigger:
		open virtual chest named "&8Profil &8&l| &8Options" with 5 rows to player
		wait 3 ticks
		format a gui slot 0 of player with black glass named " " to do nothing
		format a gui slot 1 of player with black glass named " " to do nothing
		format a gui slot 7 of player with black glass named " " to do nothing
		format a gui slot 8 of player with black glass named " " to do nothing
		format a gui slot 9 of player with black glass named " " to do nothing
		# LES ITEM 
		if {cg.%uuid of player%} is "1":
			make gui slot 10 of player with book named "&eChat global" with lore "&7Paramétrez la &avisibilité||&7des &bmessages&7 dans||&7le chat global||||&a» &7État: &aActivé||&7» &7État: &7Uniquement aux amis||&7» &7État: &7Désactivé ||||&6&l» &eCliquez pour changer" to run:
				make player execute command "/cg-change"
		else if {cg.%uuid of player%} is "2":
			make gui slot 10 of player with book named "&eChat global" with lore "&7Paramétrez la &avisibilité||&7des &bmessages&7 dans||&7le chat global||||&7» &7État: &7Activé||&a» &7État: &eUniquement aux amis||&7» &7État: &7Désactivé ||||&6&l» &eCliquez pour changer" to run:
				make player execute command "/cg-change"
		else if {cg.%uuid of player%} is "3":
			make gui slot 10 of player with book named "&eChat global" with lore "&7Paramétrez la &avisibilité||&7des &bmessages&7 dans||&7le chat global||||&7» &7État: &7Activé||&7» &7État: &7Uniquement aux amis||&a» &7État: &cDésactivé ||||&6&l» &eCliquez pour changer" to run:
				make player execute command "/cg-change"
		if {mp.%uuid of player%} is "1":
			make gui slot 11 of player with paper named "&eMessages privés" with lore "&7Configurez la &aréception||&7de vos messages privés.||||&a» &7État: &aActivé||&7» &7État: &7Uniquement aux amis||&7» &7État: &7Désactivé ||||&6&l» &eCliquez pour changer" to run:
				make player execute command "/mp-change"
		else if {mp.%uuid of player%} is "2":
			make gui slot 11 of player with paper named "&eMessages privés" with lore "&7Configurez la &aréception||&7de vos messages privés.||||&7» &7État: &7Activé||&a» &7État: &eUniquement aux amis||&7» &7État: &7Désactivé ||||&6&l» &eCliquez pour changer" to run:
				make player execute command "/mp-change"
		else if {mp.%uuid of player%} is "3":
			make gui slot 11 of player with paper named "&eMessages privés" with lore "&7Configurez la &aréception||&7de vos messages privés.||||&7» &7État: &7Activé||&7» &7État: &7Uniquement aux amis||&a» &7État: &cDésactivé ||||&6&l» &eCliquez pour changer" to run:
				make player execute command "/mp-change"





command /cg-change:
	trigger:
		if "%inventory name of player's current inventory%" is "&8Profil &8&l| &8Options":
			if {cg.%uuid of player%} is "1":
				make gui slot 10 of player with book named "&eChat global" with lore "&7Paramétrez la &avisibilité||&7des &bmessages&7 dans||&7le chat global||||&a» &7État: &aActivé||&7» &7État: &7Uniquement aux amis||&7» &7État: &7Désactivé ||||&6&l» &eCliquez pour changer" to run:
					make player execute command "/cg-change"
				set {cg.%uuid of player%} to "2"
				set {cgc.%uuid of player%} to 1
			else if {cg.%uuid of player%} is "2":
				make gui slot 10 of player with book named "&eChat global" with lore "&7Paramétrez la &avisibilité||&7des &bmessages&7 dans||&7le chat global||||&7» &7État: &7Activé||&a» &7État: &eUniquement aux amis||&7» &7État: &7Désactivé ||||&6&l» &eCliquez pour changer" to run:
					make player execute command "/cg-change"
				set {cg.%uuid of player%} to "3"
				set {cgc.%uuid of player%} to 2
			else if {cg.%uuid of player%} is "3":
				make gui slot 10 of player with book named "&eChat global" with lore "&7Paramétrez la &avisibilité||&7des &bmessages&7 dans||&7le chat global||||&7» &7État: &7Activé||&7» &7État: &7Uniquement aux amis||&a» &7État: &cDésactivé ||||&6&l» &eCliquez pour changer" to run:
					make player execute command "/cg-change"
				set {cg.%uuid of player%} to "1"
				set {cgc.%uuid of player%} to 3
			else if {cg.%uuid of player%} is not set:
				set {cg.%uuid of player%} to "1" 
				

Je passe en résolu

Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.
×
×
  • 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.