Aller au contenu
  • 0

Voir si un joueur est connecté, OP avec des "with lore" sur un menu


Question

Posté(e)

Avec se long Titre, je vous dit bonjour ! :p

 

Aujourd'hui j'ai encore besoin de votre aide Skripteurs/Skripteuses expérimenté(e)s !

Je voudrais voir si un joueur est connecté dans un menu TuSKe je vous mets à disposition un screen pour que vous compreniez se que j'ai besoin ^^ (Et savoir aussi si il est op si possible S.V.P. Merci :D)

[ATTACH=full]6673[/ATTACH]

9 réponses à cette question

Messages recommandés

  • 0
Posté(e)
player is op, arg 1 is online

Je sais mais comment je pourais le faire en with lore :

format gui slot 22 of player with skull of player named "&8» &6%player%" with lore "||&6Grade &8» &7&oBientôt...||||&6Coins &8» &7%{coins.%uuid of player%}%||&dAmis &8» &c✖||&eEn ligne &8» &a✔" to do nothing

  • 0
Posté(e)

Bah tout simplement comme ça :)

 

if arg 1 is online:
   set {_ol} to "✔"
else:
   set {_ol} to "✖"
if arg 1 is op:
   set {_op} to "✔"
else:
   set {_op} to "✖"
set {_d} to displayname of arg 1
replace all "%arg 1%" and "[" and "]" with "" in {_d}
format gui slot 22 of player with skull of player named "&8» &6%player%" with lore "||&6Grade &8» &7&%{_d}%||||&6Coins &8» &7%{coins.%uuid of player%}%||&dAmis &8» &c✖||&eEn ligne &8» &a%{_ol}%||&6OP: &e%{_op}%" to do nothing

 

Remplace juste "arg 1" avec ce que tu veux ^^

  • 0
Posté(e)
Bah tout simplement comme ça :)

 

if arg 1 is online:
   set {_ol} to "✔"
else:
   set {_ol} to "✖"
if arg 1 is op:
   set {_op} to "✔"
else:
   set {_op} to "✖"
set {_d} to displayname of arg 1
replace all "%arg 1%" and "[" and "]" with "" in {_d}
format gui slot 22 of player with skull of player named "&8» &6%player%" with lore "||&6Grade &8» &7&%{_d}%||||&6Coins &8» &7%{coins.%uuid of player%}%||&dAmis &8» &c✖||&eEn ligne &8» &a%{_ol}%||&6OP: &e%{_op}%" to do nothing

 

Remplace juste "arg 1" avec ce que tu veux ^^

Pourais tu m'expliqué la partie :

set {_d} to displayname of arg 1
replace all "%arg 1%" and "[" and "]" with "" in {_d}

 

EDIT: Aupire je t'envoie tout le code tu pourrais me le faire XD (car j'ai des érreurs...)

command /§profil:
   trigger:
       open virtual chest inventory with size 6 named "&7Profil &8» &6Kybos" to player
       wait 2 ticks
       format gui slot 0 of player with green stained glass pane named " " to do nothing
       format gui slot 9 of player with light green stained glass pane named " " to do nothing
       format gui slot 1 of player with light green stained glass pane named " " to do nothing
       format gui slot 8 of player with green stained glass pane named " " to do nothing
       format gui slot 7 of player with light green stained glass pane named " " to do nothing
       format gui slot 17 of player with light green stained glass pane named " " to do nothing
       format gui slot 45 of player with green stained glass pane named " " to do nothing
       format gui slot 36 of player with light green stained glass pane named " " to do nothing
       format gui slot 46 of player with light green stained glass pane named " " to do nothing
       format gui slot 52 of player with light green stained glass pane named " " to do nothing
       format gui slot 53 of player with green stained glass pane named " " to do nothing
       format gui slot 44 of player with light green stained glass pane named " " to do nothing
       format gui slot 22 of player with skull of player named "&8» &6%player%" with lore "||&6Grade &8» &7&oBientôt...||||&6Coins &8» &7%{coins.%uuid of player%}%||&dAmis &8» &c✖||&eEn ligne &8» %{_ol}%" to do nothing
       format gui slot 49 of player with skull of "EmeraldFilmz" parsed as offline player named "&8» &eBoutique" with lore "||&8» &7Bientôt disponible !" to do nothing
       format gui slot 48 of player with skull of "Torias_Dax" parsed as offline player named "&8» &5Cosmetiques" with lore "||&8» &7Bientôt disponible !" to do nothing
       format gui slot 50 of player with skull of "TheSkidz" parsed as offline player named "&8» &bLobby" with lore "||&8» &7Téléportation au lobby !" to do nothing

  • 0
Posté(e)

Bah au début avant le open virtual etc tu set une variable temporaire à "En ligne" ou autres si il est online avec "if player is online" et une autre variable avec "if player is op" puis tu la mets entre pourcentage dans le format gui slot.

  • 0
Posté(e)

Tien

command /§profil:
   trigger:
       open virtual chest inventory with size 6 named "&7Profil &8» &6Kybos" to player
       wait 2 ticks
       if arg 1 is online:
           set {_ol} to "✔"
       else:
           set {_ol} to "✖"
       if arg 1 is op:
           set {_op} to "✔"
       else:
           set {_op} to "✖"
       set {_Grade.%player%} to displayname of arg 1
       replace all "%arg 1%" and "[" and "]" with "" in {_Grade.%player%}
       format gui slot 0 of player with green stained glass pane named " " to do nothing
       format gui slot 9 of player with light green stained glass pane named " " to do nothing
       format gui slot 1 of player with light green stained glass pane named " " to do nothing
       format gui slot 8 of player with green stained glass pane named " " to do nothing
       format gui slot 7 of player with light green stained glass pane named " " to do nothing
       format gui slot 17 of player with light green stained glass pane named " " to do nothing
       format gui slot 45 of player with green stained glass pane named " " to do nothing
       format gui slot 36 of player with light green stained glass pane named " " to do nothing
       format gui slot 46 of player with light green stained glass pane named " " to do nothing
       format gui slot 52 of player with light green stained glass pane named " " to do nothing
       format gui slot 53 of player with green stained glass pane named " " to do nothing
       format gui slot 44 of player with light green stained glass pane named " " to do nothing
       format gui slot 22 of player with skull of player named "&8» &6%player%" with lore "||&6Grade &8» &7&%{_Grade.%player%}%||||&6Coins &8» &7%{coins.%uuid of player%}%||&dAmis &8» &c✖||&eEn ligne &8» &a%{_ol}%||&6OP: &e%{_op}%" to do nothing       
       format gui slot 49 of player with skull of "EmeraldFilmz" parsed as offline player named "&8» &eBoutique" with lore "||&8» &7Bientôt disponible !" to do nothing
       format gui slot 48 of player with skull of "Torias_Dax" parsed as offline player named "&8» &5Cosmetiques" with lore "||&8» &7Bientôt disponible !" to do nothing
       format gui slot 50 of player with skull of "TheSkidz" parsed as offline player named "&8» &bLobby" with lore "||&8» &7Téléportation au lobby !" to do nothing

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.