Aller au contenu

Comment voir le nombre ce connecté sur son jeu en skript


Messages recommandés

Posté(e)

Bonjour,

 

Je voudrais savoir comment on fait pour voir le nombre de co sur son jeu via un bloque de clay vert.

 

Merci d'avance.

 

[spoiler=Screen]1503240434-hjhjkhjk.png

 

Posté(e)

Normalement sa marche ;p

 

command /gui:
   trigger:
       open chest with 1 rows named "..." to player
       set {_co} to number of connected player

       if {_co} > 64:
           set {_co} to 64
       set {_co} to {_co} parsed as player

       format slot 4 of player with {_co} stone named "" to close

Posté(e)
Normalement sa marche ;p

 

command /gui:
   trigger:
       open chest with 1 rows named "..." to player
       set {_co} to number of connected player

       if {_co} > 64:
           set {_co} to 64
       set {_co} to {_co} parsed as player

       format slot 4 of player with {_co} stone named "" to close

Ok je test

Posté(e)
Normalement sa marche ;p

 

command /gui:
   trigger:
       open chest with 1 rows named "..." to player
       set {_co} to number of connected player

       if {_co} > 64:
           set {_co} to 64
       set {_co} to {_co} parsed as player

       format slot 4 of player with {_co} stone named "" to close

Possible de me le faire un TUSKE ?

Posté(e)
Normalement sa marche ;p

 

command /gui:
   trigger:
       open chest with 1 rows named "..." to player
       set {_co} to number of connected player

       if {_co} > 64:
           set {_co} to 64
       set {_co} to {_co} parsed as player

       format slot 4 of player with {_co} stone named "" to close

Désolé mais le skript que tu nous à donné ne marche pas cela me mets des érreurs...

Les voici :

Posté(e)

Sachant que c'est dans le post "Aide" et pas dans "Demande de Skript" il faut que tu fasse une variable qui se reset à la fin du jeu, tu rajoutes 1 quant une personne rejoind, tu retires 1 quand une personne part, et tu met : format gui slot with {lavariable} diamond sword (...) to close

Posté(e)
Sachant que c'est dans le post "Aide" et pas dans "Demande de Skript" il faut que tu fasse une variable qui se reset à la fin du jeu, tu rajoutes 1 quant une personne rejoind, tu retires 1 quand une personne part, et tu met : format gui slot with {lavariable} diamond sword (...) to close

La variable de quoi ? Regarde la dernière ligne*

 

command /§ffa:
   trigger:
       open virtual chest inventory with size 6 named "&7FFA &8» &6Nexovia" to player
       wait 2 ticks
       format gui slot 45 of player with book named "&aParamètre" with lore "&7(Clique-Gauche)" to close then run player command "/§paramètre" with left click
       format gui slot 49 of player with skull of player named "&eProfil" with lore "&7(Clique-Gauche)" to close then run player command "/§profil" with left click
       format gui slot 53 of player with arrow named "&7Retour.." to close then run player command "/menu" with left click  
       format gui slot 0 of player with white stained glass pane named " " to do nothing
       format gui slot 1 of player with gray stained glass pane named " " to do nothing
       format gui slot 2 of player with white stained glass pane named " " to do nothing
       format gui slot 3 of player with white stained glass pane named " " to do nothing
       format gui slot 4 of player with gray stained glass pane named " " to do nothing
       format gui slot 5 of player with white stained glass pane named " " to do nothing
       format gui slot 6 of player with white stained glass pane named " " to do nothing
       format gui slot 7 of player with gray stained glass pane named " " to do nothing
       format gui slot 8 of player with white stained glass pane named " " to do nothing
       format gui slot 9 of player with white stained glass pane named " " to do nothing
       format gui slot 17 of player with white stained glass pane named " " to do nothing
       format gui slot 18 of player with gray stained glass pane named " " to do nothing
       format gui slot 26 of player with gray stained glass pane named " " to do nothing
       format gui slot 27 of player with white stained glass pane named " " to do nothing
       format gui slot 35 of player with white stained glass pane named " " to do nothing
       format gui slot 36 of player with white stained glass pane named " " to do nothing
       format gui slot 37 of player with gray stained glass pane named " " to do nothing
       format gui slot 38 of player with white stained glass pane named " " to do nothing
       format gui slot 39 of player with white stained glass pane named " " to do nothing
       format gui slot 40 of player with gray stained glass pane named " " to do nothing
       format gui slot 41 of player with white stained glass pane named " " to do nothing
       format gui slot 42 of player with white stained glass pane named " " to do nothing
       format gui slot 43 of player with gray stained glass pane named " " to do nothing
       format gui slot 44 of player with white stained glass pane named " " to do nothing
       format gui slot 20 of player with barrier named "&7&oBientôt &r&e✌" with lore "&cEtat du serveur &7: &7[&4✘&7]" to do nothing
       format gui slot 24 of player with barrier named "&7&oBientôt &r&a✌" with lore "&cEtat du serveur &7: &7[&4✘&7]" to do nothing
       format gui slot 22 of player with light green clay named "&7&oFFA &8» &6SkyWars" with lore "&cEtat du serveur &7: &7[&4✘&7]" to do nothing

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