j'ai développer un script de téléportation l'année dernière, et aujourd'hui j'aimerais l'utiliser mais malheureusement j'ai des erreur et je ne sais pas quelle add-on je doit utiliser,
donc j'aimerais qu'on m'aide, qu'on me passe les add-on que j'ai besoin car pour le moment j'ai que "script" sur mon serveur.
Voila le code :
options:
prefix: &7&lFarCrox &e> &c
on right click with diamond:
if name of event-item is "&c&lMenu des mini-jeux.":
open chest with 4 rows named "&6&lMenu &9&lFarCrox" to player
format gui slot 0 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 1 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 2 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 3 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 4 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 5 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 6 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 7 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 8 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 9 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 10 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 11 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 12 of player with diamond sword of sharpness 1 with no nbt named "&b&lPvP-Faction" with lore "&fLe PvP-Faction un mode de jeu inédit !||&fCréé votre faction et jouez !" to close then run function changeserver(player, "jeu1") [ execute player command "/server faction" ]
format gui slot 13 of player with barrier named "&b&lJeu 2" with lore "&fIci met le deuxième jeu ;)" to close then run function changeserver(player, "jeu2")
format gui slot 14 of player with barrier named "&b&lJeu 3" with lore "&fIci met le troisième jeu ;)" to close then run function changeserver(player, "jeu3")
format gui slot 15 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 16 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 17 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 18 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 19 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 20 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 21 of player with barrier named "&b&lJeu 4" with lore "&fIci met le quatrième jeu ;)" to close then run function changeserver(player, "jeu4")
format gui slot 22 of player with barrier named "&b&lJeu 5" with lore "&fIci met le cinquième jeu ;)" to close then run function changeserver(player, "jeu5")
format gui slot 23 of player with barrier named "&b&lJeu 6" with lore "&fIci met le sixième jeu ;)" to close then run function changeserver(player, "jeu6")
format gui slot 24 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 25 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 26 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 27 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 28 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 29 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 30 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 31 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 32 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 33 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 34 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 35 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
#12, 13, 14, 21, 22, 23
function changeserver(p: player, j: text):
if {_j} is "jeu1":
send "{@prefix}Vous avez été téléporté au &e&lPvP-Faction !" to {_p}
bungeecord connect player to "PvP-Faction"
else if {_j} is "jeu2":
send "{@prefix}Vous avez été téléporté au jeu numéro &e&l2 !" to {_p}
bungeecord connect player to "jeu2"
else if {_j} is "jeu3":
send "{@prefix}Vous avez été téléporté au jeu numéro &e&l3 !" to {_p}
bungeecord connect player to "jeu3"
else if {_j} is "jeu4":
send "{@prefix}Vous avez été téléporté au jeu numéro &e&l4 !" to {_p}
bungeecord connect player to "jeu4"
else if {_j} is "jeu5":
send "{@prefix}Vous avez été téléporté au jeu numéro &e&l5 !" to {_p}
bungeecord connect player to "jeu5"
else if {_j} is "jeu6":
send "{@prefix}Vous avez été téléporté au jeu numéro &e&l6 !" to {_p}
bungeecord connect player to "jeu6"
else:
send "&cErreur Interne: &7Veuiller contacter un administrateur (Ref. l*66 | function changeserver)" to {_p}
on join:
clear player's inventory
set slot 4 of player to diamond named "&c&lMenu des mini-jeux."
on inventory click:
if name of event-item is "&c&lMenu des mini-jeux.":
cancel event
on drop:
if name of event-item is "&c&lMenu des mini-jeux.":
cancel event
on pickup:
if name of event-item is "&c&lMenu des mini-jeux.":
cancel event
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
FarGameYTB
Bonjour,
j'ai développer un script de téléportation l'année dernière, et aujourd'hui j'aimerais l'utiliser mais malheureusement j'ai des erreur et je ne sais pas quelle add-on je doit utiliser,
donc j'aimerais qu'on m'aide, qu'on me passe les add-on que j'ai besoin car pour le moment j'ai que "script" sur mon serveur.
Voila le code :
options:
prefix: &7&lFarCrox &e> &c
on right click with diamond:
if name of event-item is "&c&lMenu des mini-jeux.":
open chest with 4 rows named "&6&lMenu &9&lFarCrox" to player
format gui slot 0 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 1 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 2 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 3 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 4 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 5 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 6 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 7 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 8 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 9 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 10 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 11 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 12 of player with diamond sword of sharpness 1 with no nbt named "&b&lPvP-Faction" with lore "&fLe PvP-Faction un mode de jeu inédit !||&fCréé votre faction et jouez !" to close then run function changeserver(player, "jeu1") [ execute player command "/server faction" ]
format gui slot 13 of player with barrier named "&b&lJeu 2" with lore "&fIci met le deuxième jeu ;)" to close then run function changeserver(player, "jeu2")
format gui slot 14 of player with barrier named "&b&lJeu 3" with lore "&fIci met le troisième jeu ;)" to close then run function changeserver(player, "jeu3")
format gui slot 15 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 16 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 17 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 18 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 19 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 20 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 21 of player with barrier named "&b&lJeu 4" with lore "&fIci met le quatrième jeu ;)" to close then run function changeserver(player, "jeu4")
format gui slot 22 of player with barrier named "&b&lJeu 5" with lore "&fIci met le cinquième jeu ;)" to close then run function changeserver(player, "jeu5")
format gui slot 23 of player with barrier named "&b&lJeu 6" with lore "&fIci met le sixième jeu ;)" to close then run function changeserver(player, "jeu6")
format gui slot 24 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 25 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 26 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 27 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 28 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 29 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 30 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 31 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 32 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 33 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 34 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
format gui slot 35 of player with orange stained glass pane named "&b&nhttps://farcrox.fr" to do nothing
#12, 13, 14, 21, 22, 23
function changeserver(p: player, j: text):
if {_j} is "jeu1":
send "{@prefix}Vous avez été téléporté au &e&lPvP-Faction !" to {_p}
bungeecord connect player to "PvP-Faction"
else if {_j} is "jeu2":
send "{@prefix}Vous avez été téléporté au jeu numéro &e&l2 !" to {_p}
bungeecord connect player to "jeu2"
else if {_j} is "jeu3":
send "{@prefix}Vous avez été téléporté au jeu numéro &e&l3 !" to {_p}
bungeecord connect player to "jeu3"
else if {_j} is "jeu4":
send "{@prefix}Vous avez été téléporté au jeu numéro &e&l4 !" to {_p}
bungeecord connect player to "jeu4"
else if {_j} is "jeu5":
send "{@prefix}Vous avez été téléporté au jeu numéro &e&l5 !" to {_p}
bungeecord connect player to "jeu5"
else if {_j} is "jeu6":
send "{@prefix}Vous avez été téléporté au jeu numéro &e&l6 !" to {_p}
bungeecord connect player to "jeu6"
else:
send "&cErreur Interne: &7Veuiller contacter un administrateur (Ref. l*66 | function changeserver)" to {_p}
on join:
clear player's inventory
set slot 4 of player to diamond named "&c&lMenu des mini-jeux."
on inventory click:
if name of event-item is "&c&lMenu des mini-jeux.":
cancel event
on drop:
if name of event-item is "&c&lMenu des mini-jeux.":
cancel event
on pickup:
if name of event-item is "&c&lMenu des mini-jeux.":
cancel event
Merci d'avance a ceux / celle qui m'aideront.
Cordialement FarGame.
4 réponses à cette question
Messages recommandés