Voici mon Skript de GUI avec un systeme de langue :
[spoiler=Mon Skript]
#Give des Items
#la variable player.lang.%player% definis la langue du joueur: 1=English | 0=Français | variable non set = Français (premiere connexion)
on join :
if {player.lang.%player%} is 1
set slot 4 of player's inventory to nether star named "&6&lMain Menu &7(Right Click)"
set slot 8 of player's inventory to banner named "&6&lChange Language (Currently English)"
else
set slot 4 of player's inventory to nether star named "&6&lMenu &7(Clique droit)"
set slot 8 of player's inventory to banner named "&6&lChanger la Langue (Actuellement Français)"
#Il y as un cooldown (5coal qui disparaisent progrésivement chaque seconde) ,pour l'instant je dis que c'est anti-lag mais a terme je rajouterais un grade(VIP) pour passer ce cooldown
#Menu + Cooldown
on rightclick with a nether star :
if {player.lang.%player%} is 1
wait 1 tick
open chest with 1 rows named "&6Cooldown Anti-Lag"
wait 2 tick #----- EN
format slot 0 with barrier named "&6Cancel countdown" and lore "You will not enter in the menu" to close
format slot 6 with coal named "&2Couldownn No-Lag" with lore "5 seconds left" to be unstealable
format slot 5 with coal named "&2Couldownn No-Lag" with lore "5 seconds left" to be unstealable
format slot 4 with coal named "&2Couldownn No-Lag" with lore "5 seconds left" to be unstealable
format slot 3 with coal named "&2Couldownn No-Lag" with lore "5 seconds left" to be unstealable
format slot 2 with coal named "&2Couldownn No-Lag" with lore "5 seconds left" to be unstealable
wait 1 seconds #---- EN
open chest with 1 rows named "&6Cooldown Anti-Lag"
format slot 0 with barrier named "&6Cancel countdown" and lore "You will not enter in the menu" to close
format slot 6 with coal named "&2Couldownn No-Lag" with lore "4 seconds left" to be unstealable
format slot 5 with coal named "&2Couldownn No-Lag" with lore "4 seconds left" to be unstealable
format slot 4 with coal named "&2Couldownn No-Lag" with lore "4 seconds left" to be unstealable
format slot 3 with coal named "&2Couldownn No-Lag" with lore "4 seconds left" to be unstealable
wait 1 seconds #--- EN
open chest with 1 rows named "&6Cooldown Anti-Lag"
format slot 0 with barrier named "&6Cancel countdown" and lore "You will not enter in the menu" to close
format slot 5 with coal named "&2Couldownn No-Lag" with lore "3 seconds left" to be unstealable
format slot 4 with coal named "&2Couldownn No-Lag" with lore "3 seconds left" to be unstealable
format slot 3 with coal named "&2Couldownn No-Lag" with lore "3 seconds left" to be unstealable
wait 1 seconds #-- EN
open chest with 1 rows named "&6Cooldown Anti-Lag"
format slot 0 with barrier named "&6Cancel countdown" and lore "You will not enter in the menu" to close
format slot 5 with coal named "&2Couldownn No-Lag" with lore "2 seconds left" to be unstealable
format slot 4 with coal named "&2Couldownn No-Lag" with lore "2 seconds left" to be unstealable
wait 1 seconds #- EN
open chest with 1 rows named "&6Cooldown Anti-Lag"
format slot 0 with barrier named "&6Cancel countdown" and lore "You will not enter in the menu" to close
format slot 4 with coal named "&2Couldownn No-Lag" with lore "1 second left" to be unstealable
wait 1 seconds
open chest with 1 rowd named "Main Menu"
wait 2 tick
format slot 0 with barrier named "&6Quit Menu" to close
wait 1 seconds
format slot 0 with clock named "&6Go to the menu" to run [execute console command "say %player% Currently unavailable"]
else :
wait 1 tick
open chest with 1 rows named "&6Cooldown Anti-Lag"
wait 2 tick #----- FR
format slot 0 with barrier named "&6Annuler le compte a rebours" and lore "Vous n'accederez pas au menu" to close
format slot 6 with coal named "&2Couldownn No-Lag" with lore "5 secondes restantes" to be unstealable
format slot 5 with coal named "&2Couldownn No-Lag" with lore "5 secondes restantes" to be unstealable
format slot 4 with coal named "&2Couldownn No-Lag" with lore "5 secondes restantes" to be unstealable
format slot 3 with coal named "&2Couldownn No-Lag" with lore "5 secondes restantes" to be unstealable
format slot 2 with coal named "&2Couldownn No-Lag" with lore "5 secondes restantes" to be unstealable
wait 1 seconds #---- FR
open chest with 1 rows named "&6Couldown Anti-Lag"
format slot 0 with barrier named "&6Annuler le compte a rebours" and lore "Vous n'accederez pas au menu" to close
format slot 6 with coal named "&2Couldownn No-Lag" with lore "4 secondes restantes" to be unstealable
format slot 5 with coal named "&2Couldownn No-Lag" with lore "4 secondes restantes" to be unstealable
format slot 4 with coal named "&2Couldownn No-Lag" with lore "4 secondes restantes" to be unstealable
format slot 3 with coal named "&2Couldownn No-Lag" with lore "4 secondes restantes" to be unstealable
wait 1 seconds #--- FR
open chest with 1 rows named "&6Couldown Anti-Lag"
format slot 0 with barrier named "&6Annuler le compte a rebours" and lore "Vous n'accederez pas au menu" to close
format slot 5 with coal named "&2Couldownn No-Lag" with lore "3 secondes restantes" to be unstealable
format slot 4 with coal named "&2Couldownn No-Lag" with lore "3 secondes restantes" to be unstealable
format slot 3 with coal named "&2Couldownn No-Lag" with lore "3 secondes restantes" to be unstealable
wait 1 seconds #-- FR
open chest with 1 rows named "&6Couldown Anti-Lag"
format slot 0 with barrier named "&6Annuler le compte a rebours" and lore "Vous n'accederez pas au menu" to close
format slot 5 with coal named "&2Couldownn No-Lag" with lore "2 secondes restantes" to be unstealable
format slot 4 with coal named "&2Couldownn No-Lag" with lore "2 secondes restantes" to be unstealable
wait 1 seconds #- EN
open chest with 1 rows named "&6Couldown Anti-Lag"
format slot 0 with barrier named "&6Annuler le compte a rebours" and lore "Vous n'accederez pas au menu" to close
format slot 4 with coal named "&2Couldownn No-Lag" with lore "1 secondes restantes" to be unstealable
wait 1 seconds
open chest with 1 rowd named "Main Menu"
wait 2 tick
format slot 0 with barrier named "&6Quit Menu" to close
wait 1 seconds
format slot 0 with clock named "&6Acceder au menu" to run [execute console command "say %player% Actuellement Indisponible]
#Gestion de la langue du serveur
on rightclick with a banner :
if {player.lang.%player%} is 0 or not set
set {player.lang.%player%} to 1
execute console command "kick %player% Language changer avec succés (FR). Veuillez vous reconnecter pour terminer le proccesus."
on rightclick with a banner :
if {player.lang.%player%} is 0 or not set
set {player.lang.%player%} to 1
execute console command "kick %player% Language change with success (EN). Please log in again to complete the process."
#Ptit Bonus
on rightclick with a brick :
execute console command "skript reload scripts"
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.
Question
Celemo
Voici mon Skript de GUI avec un systeme de langue :
[spoiler=Mon Skript]
Pouvez vous m'aider
PS : ce skript nécessite WildSkript
9 réponses à cette question
Messages recommandés