Aller au contenu

Question

Posté(e)

Bonjour, Bonsoir

 

Donc je suis entrain de faire un skript de gui lorsque le joueur est freeze mais le seul problème est à la ligne 49:

Je souhaiterai que seul les joueur ayant la permission "staff.mod" peuvent voir le message "&4[&cStaff&4] &aLe joueur &2%player%&a étant freeze accepte la vérification pc ! ", le joueur qui lui a accepter sa lui marque "&aTu as accepté la vérification pc !" mais aussi qu'il soit téléporté au spawn "/spawn"

Donc quand le joueur cliquera sur "Oui" dans le menu gui s met :

(pour le Staff)

 

[spoiler=Staff]1492039552-skript-staff.png

 

 

(pour le Joueur)

 

 

[spoiler=Joueur]1492039646-skript-joueur.png

 

 

Merci Cordialement

Messages recommandés

  • 0
Posté(e)

command /gui:
   trigger:
       set {gui.%player's UUID%} to true
       wait 2 ticks
       open chest with 3 rows named "&c----=== &4&lAvoue Tu ? &c===----" to player
       format slot 0 of player with stained glass pane:14 named " " to be unstealable
       format slot 1 of player with stained glass pane:14 named " " to be unstealable
       format slot 2 of player with stained glass pane:14 named " " to be unstealable
       format slot 3 of player with stained glass pane:14 named " " to be unstealable
       format slot 4 of player with player's skull named "&6&lCheat-tu ?" to be unstealable
       format slot 5 of player with stained glass pane:14 named " " to be unstealable
       format slot 6 of player with stained glass pane:14 named " " to be unstealable
       format slot 7 of player with stained glass pane:14 named " " to be unstealable
       format slot 8 of player with stained glass pane:14 named " " to be unstealable
       format slot 9 of player with stained glass pane:14 named " " to be unstealable
       format slot 10 of player with glowing diamond block named "&lOui" to run [make console execute command "/tempban %player% 14d Cheat/Avoué !"]
       format slot 11 of player with stained glass pane:3 named " " to be unstealable
       format slot 12 of player with stained glass pane:3 named " " to be unstealable
       format slot 13 of player with stained glass pane:3 named " " to be unstealable
       format slot 14 of player with stained glass pane:3 named " " to be unstealable
       format slot 15 of player with stained glass pane:3 named " " to be unstealable
       format slot 16 of player with glowing gold block named "&lNon" to run [make player execute command "/§gui2"]
       format slot 17 of player with   stained glass pane:14 named " " to be unstealable
       format slot 18 of player with stained glass pane:14 named " " to be unstealable
       format slot 19 of player with stained glass pane:14 named " " to be unstealable
       format slot 20 of player with stained glass pane:14 named " " to be unstealable
       format slot 21 of player with stained glass pane:14 named " " to be unstealable
       format slot 22 of player with stained glass pane:14 named " " to be unstealable
       format slot 23 of player with stained glass pane:14 named " " to be unstealable
       format slot 24 of player with stained glass pane:14 named " " to be unstealable
       format slot 25 of player with stained glass pane:14 named " " to be unstealable
       format slot 26 of player with stained glass pane:14 named " " to be unstealable


command /§gui2:
   trigger:
       wait 2 ticks
       open chest with 3 rows named "&c----=== &4&lAccepte-tu &c===----" to player
       format slot 0 of player with stained glass pane:14 named " " to be unstealable
       format slot 1 of player with stained glass pane:14 named " " to be unstealable
       format slot 2 of player with stained glass pane:14 named " " to be unstealable
       format slot 3 of player with stained glass pane:14 named " " to be unstealable
       format slot 4 of player with player's skull named "&6&lAccepte-tu une vérification pc ?" to be unstealable
       format slot 5 of player with stained glass pane:14 named " " to be unstealable
       format slot 6 of player with stained glass pane:14 named " " to be unstealable
       format slot 7 of player with stained glass pane:14 named " " to be unstealable
       format slot 8 of player with stained glass pane:14 named " " to be unstealable
       format slot 9 of player with stained glass pane:14 named " " to be unstealable
       format slot 10 of player with glowing diamond block named "&lOui" to run [make console execute command "say &6Le joueur &c&o%player%&6 étant freeze à fait le choix d'accepter la vérification pc !" to op]
       format slot 11 of player with stained glass pane:3 named " " to be unstealable
       format slot 12 of player with stained glass pane:3 named " " to be unstealable
       format slot 13 of player with stained glass pane:3 named " " to be unstealable
       format slot 14 of player with stained glass pane:3 named " " to be unstealable
       format slot 15 of player with stained glass pane:3 named " " to be unstealable
       format slot 16 of player with glowing gold block named "&lNon" to run [make player execute command "/git"]
       format slot 17 of player with   stained glass pane:14 named " " to be unstealable
       format slot 18 of player with stained glass pane:14 named " " to be unstealable
       format slot 19 of player with stained glass pane:14 named " " to be unstealable
       format slot 20 of player with stained glass pane:14 named " " to be unstealable
       format slot 21 of player with stained glass pane:14 named " " to be unstealable
       format slot 22 of player with stained glass pane:14 named " " to be unstealable
       format slot 23 of player with stained glass pane:14 named " " to be unstealable
       format slot 24 of player with stained glass pane:14 named " " to be unstealable
       format slot 25 of player with stained glass pane:14 named " " to be unstealable
       format slot 26 of player with stained glass pane:14 named " " to be unstealable



on inventory close:
   wait 3 ticks
   if {gui.%player's UUID%} is true:
       make player execute command "/gui"

command /git:
   trigger:
       set {gui.%player's UUID%} to false
on join:
   set {gui.%player's UUID%} to 0

on quit:
   set {gui.%player's UUID%} to 0

 

Merci Beaucoup, Tu peut m'explique un peu en meme temps ? x)

  • 0
Posté(e)

Tu as oublié une étape mais bon je te passe l'étape qui permet d'avertir le staff qu'il a accepter (PASSE MOI TON CODE ENTIER x)):

command /test:
   trigger:
       loop all players: #Loop tout les joueurs
           if loop-value has permission "staff.mod": #Si les joueurs ont la permission staff.mod
               send "&4[&cStaff&4] &aLe joueur &2%player% &aétant freeze accepte la vérification pc !" to loop-value #Envoyer le message "..." aux joueurs

  • J'aime 1
  • 0
Posté(e)

Ah donc je vien de me rendre compte de ce que je dois faire :p xD

 

EDIT (Voici voilà):

command /gui:
   trigger:
       set {gui.%player's UUID%} to true
       wait 2 ticks
       open chest with 3 rows named "&c----=== &4&lAvoue Tu ? &c===----" to player
       format slot 0 of player with stained glass pane:14 named " " to be unstealable
       format slot 1 of player with stained glass pane:14 named " " to be unstealable
       format slot 2 of player with stained glass pane:14 named " " to be unstealable
       format slot 3 of player with stained glass pane:14 named " " to be unstealable
       format slot 4 of player with player's skull named "&6&lCheat-tu ?" to be unstealable
       format slot 5 of player with stained glass pane:14 named " " to be unstealable
       format slot 6 of player with stained glass pane:14 named " " to be unstealable
       format slot 7 of player with stained glass pane:14 named " " to be unstealable
       format slot 8 of player with stained glass pane:14 named " " to be unstealable
       format slot 9 of player with stained glass pane:14 named " " to be unstealable
       format slot 10 of player with glowing diamond block named "&lOui" to run [make console execute command "/tempban %player% 14d Cheat/Avoué !"]
       format slot 11 of player with stained glass pane:3 named " " to be unstealable
       format slot 12 of player with stained glass pane:3 named " " to be unstealable
       format slot 13 of player with stained glass pane:3 named " " to be unstealable
       format slot 14 of player with stained glass pane:3 named " " to be unstealable
       format slot 15 of player with stained glass pane:3 named " " to be unstealable
       format slot 16 of player with glowing gold block named "&lNon" to run [make player execute command "/§gui2"]
       format slot 17 of player with   stained glass pane:14 named " " to be unstealable
       format slot 18 of player with stained glass pane:14 named " " to be unstealable
       format slot 19 of player with stained glass pane:14 named " " to be unstealable
       format slot 20 of player with stained glass pane:14 named " " to be unstealable
       format slot 21 of player with stained glass pane:14 named " " to be unstealable
       format slot 22 of player with stained glass pane:14 named " " to be unstealable
       format slot 23 of player with stained glass pane:14 named " " to be unstealable
       format slot 24 of player with stained glass pane:14 named " " to be unstealable
       format slot 25 of player with stained glass pane:14 named " " to be unstealable
       format slot 26 of player with stained glass pane:14 named " " to be unstealable


command /§gui2:
   trigger:
       wait 2 ticks
       open chest with 3 rows named "&c----=== &4&lAccepte-tu &c===----" to player
       format slot 0 of player with stained glass pane:14 named " " to be unstealable
       format slot 1 of player with stained glass pane:14 named " " to be unstealable
       format slot 2 of player with stained glass pane:14 named " " to be unstealable
       format slot 3 of player with stained glass pane:14 named " " to be unstealable
       format slot 4 of player with player's skull named "&6&lAccepte-tu une vérification pc ?" to be unstealable
       format slot 5 of player with stained glass pane:14 named " " to be unstealable
       format slot 6 of player with stained glass pane:14 named " " to be unstealable
       format slot 7 of player with stained glass pane:14 named " " to be unstealable
       format slot 8 of player with stained glass pane:14 named " " to be unstealable
       format slot 9 of player with stained glass pane:14 named " " to be unstealable
       format slot 10 of player with glowing diamond block named "&lOui" to run [make player execute command "/verifoui"]
       format slot 11 of player with stained glass pane:3 named " " to be unstealable
       format slot 12 of player with stained glass pane:3 named " " to be unstealable
       format slot 13 of player with stained glass pane:3 named " " to be unstealable
       format slot 14 of player with stained glass pane:3 named " " to be unstealable
       format slot 15 of player with stained glass pane:3 named " " to be unstealable
       format slot 16 of player with glowing gold block named "&lNon" to run [make player execute command "/git"]
       format slot 17 of player with   stained glass pane:14 named " " to be unstealable
       format slot 18 of player with stained glass pane:14 named " " to be unstealable
       format slot 19 of player with stained glass pane:14 named " " to be unstealable
       format slot 20 of player with stained glass pane:14 named " " to be unstealable
       format slot 21 of player with stained glass pane:14 named " " to be unstealable
       format slot 22 of player with stained glass pane:14 named " " to be unstealable
       format slot 23 of player with stained glass pane:14 named " " to be unstealable
       format slot 24 of player with stained glass pane:14 named " " to be unstealable
       format slot 25 of player with stained glass pane:14 named " " to be unstealable
       format slot 26 of player with stained glass pane:14 named " " to be unstealable

command /verifoui:
   trigger:
       loop all players: #Loop tout les joueurs
           if loop-value has permission "staff.mod": #Si les joueurs ont la permission staff.mod
               send "&4[&cStaff&4] &aLe joueur &2%player% &aétant freeze accepte la vérification pc !" to loop-value #Envoyer le message "..." aux joueurs
       send "&aTu as accepter la vérification PC &f, &eEn attente d'une réponse du STAFF &f!" to player

on inventory close:
   wait 3 ticks
   if {gui.%player's UUID%} is true:
       make player execute command "/gui"

command /git:
   trigger:
       set {gui.%player's UUID%} to false
on join:
   set {gui.%player's UUID%} to 0

on quit:
   set {gui.%player's UUID%} to 0

  • J'aime 1
  • 0
Posté(e)
essaye cet commande et dit moi ;):

command /test:
trigger:
send "&bTéléportation au spawn dans &75 &bsecondes"
wait 5 seconds
teleport player to spawn

ok jte dit quoi dans 5 minutes

 

[EDIT]: Parfait sa marche !

 

ducoup j'ai juste a rajouter

 

command /verifoui:
   trigger:
       teleport player to spawn
       loop all players: #Loop tout les joueurs
           if loop-value has permission "staff.mod": #Si les joueurs ont la permission staff.mod
               send "&4[&cStaff&4] &aLe joueur &2%player% &aétant freeze accepte la vérification pc !" to loop-value #Envoyer le message "..." aux joueurs
       send "&aTu as accepter la vérification PC &f, &eEn attente d'une réponse du STAFF &f!" to player

 

c'est sa ?

×
×
  • 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.