gtege Posté(e) le 10 avril 2017 Posté(e) le 10 avril 2017 Bonjour j'ai un bug... il y a une varible force respawn the victim mais elle ne marche pas :/ j'ai tous les addons requis pour faire fonctionne cette varible :://
AxelGaming Posté(e) le 10 avril 2017 Posté(e) le 10 avril 2017 Montre-nous ton code, je vais voir sa, @MrForoche et aussi là.
gtege Posté(e) le 10 avril 2017 Auteur Posté(e) le 10 avril 2017 Montre-nous ton code, je vais voir sa, @MrForoche et aussi là. re bonjour apres un peut de temp j'est trouvé : on death of player: if {hikabrainarena} is false: if name of player is "%{lainebleu}%": heal the victim wait 5 ticks teleport {lainebleu} to {spawn1hika}
Invité Posté(e) le 10 avril 2017 Posté(e) le 10 avril 2017 re bonjour apres un peut de temp j'est trouvé : on death of player: if {hikabrainarena} is false: if name of player is "%{lainebleu}%": heal the victim wait 5 ticks teleport {lainebleu} to {spawn1hika} Je vois pas , donne nous le contenue de t'es variable :)
gtege Posté(e) le 11 avril 2017 Auteur Posté(e) le 11 avril 2017 Je vois pas , donne nous le contenue de t'es variable :) command /hikabrain [<text>] [<player>]: trigger: if arg-1 is not set: message "&4/hikabrain duel <player> &e- &4Demander en duel un joueur" message "&b---------------------------------------------------------" message "&4/hikabrain setspawn1 &e- &4Set le spawn du premier joueur" message "&b---------------------------------------------------------" message "&4/hikabrain setspawn2 &e- &4Set le spawn du dexieme joueur" message "&b---------------------------------------------------------" message "&4/hikabrain accept &e- &4accepter le duel du joueur" if arg-1 is "duel": if arg-2 is set: if {hikabrainarena} is true: message "&4%executor% vous a invitez en duel &e(/hikabrain accept)" to arg-2 set {hikabrainexecutor} to player set {hikabrainarg2} to arg-2 set {invitehb.%arg-2%} to true else: message "&4L'arene et deja prise !" if arg-1 is "accept": if {hikabrainarena} is true: if {invitehb.%player%} is true: set {hikabrainarena} to false set {invitehb.%arg-2%} to false teleport {hikabrainexecutor} to {spawn1hika} teleport {hikabrainarg2} to {spawn2hika} set {lainebleu} to {hikabrainexecutor} set {lainerouge} to {hikabrainarg2} set {score.%{lainebleu}%} to 0 set {score.%{lainerouge}%} to 0 set {lainerouge} to {hikabrainarg2} equip {hikabrainarg2} with all leather armour of Protection 1 #Armure joueur 1 equip {hikabrainexecutor} with all leather armour of Protection 1 #Armure joueur 2 #Stuff joueur 1 set slot 0 of {hikabrainarg2} to 1 iron sword of Sharpness 1 set slot 2 of {hikabrainarg2} to 64 322 set slot 1 of {hikabrainarg2} to 1 iron pickaxe of efficiency 2 set slot 3 of {hikabrainarg2} to 64 sandstone of Knockback 1 set slot 4 of {hikabrainarg2} to 64 sandstone of Knockback 1 set slot 5 of {hikabrainarg2} to 64 sandstone of Knockback 1 set slot 6 of {hikabrainarg2} to 64 sandstone of Knockback 1 set slot 7 of {hikabrainarg2} to 64 sandstone of Knockback 1 set slot 8 of {hikabrainarg2} to 64 sandstone of Knockback 1 #Stuff joueur 2 set slot 0 of {hikabrainexecutor} to 1 iron sword of Sharpness 1 set slot 2 of {hikabrainarg2} to 64 322 set slot 1 of {hikabrainexecutor} to 1 iron pickaxe of efficiency 2 set slot 3 of {hikabrainexecutor} to 64 sandstone of Knockback 1 set slot 4 of {hikabrainexecutor} to 64 sandstone of Knockback 1 set slot 5 of {hikabrainexecutor} to 64 sandstone of Knockback 1 set slot 6 of {hikabrainexecutor} to 64 sandstone of Knockback 1 set slot 7 of {hikabrainexecutor} to 64 sandstone of Knockback 1 set slot 8 of {hikabrainexecutor} to 64 sandstone of Knockback 1 else: message "Tu n'a pas d'invitation en attente !" else: message "&4L'arene et deja prise !" if arg-1 is "setspawn1": set {spawn1hika} to location of player if arg-1 is "setspawn2": set {spawn2hika} to location of player on walk on a glass: world is "Hikabrain" kill the player on break a glass: world is "Hikabrain" cancel event on break a obsidian: world is "Hikabrain" cancel event on break a 95:11: world is "Hikabrain" cancel event on break a 95:14: world is "Hikabrain" cancel event on break a wool: world is "Hikabrain" cancel event on walk on a 35:11: if {hikabrainarena} is false: if name of player is "%{lainerouge}%": add 1 to {score.%{lainerouge}%} teleport {hikabrainexecutor} to {spawn1hika} teleport {hikabrainarg2} to {spawn2hika} make server execute command "regen" set slot 3 of {hikabrainexecutor} to 64 sandstone of Knockback 1 set slot 4 of {hikabrainexecutor} to 64 sandstone of Knockback 1 set slot 5 of {hikabrainexecutor} to 64 sandstone of Knockback 1 set slot 6 of {hikabrainexecutor} to 64 sandstone of Knockback 1 set slot 7 of {hikabrainexecutor} to 64 sandstone of Knockback 1 set slot 8 of {hikabrainexecutor} to 64 sandstone of Knockback 1 set slot 3 of {hikabrainarg2} to 64 sandstone of Knockback 1 set slot 4 of {hikabrainarg2} to 64 sandstone of Knockback 1 set slot 5 of {hikabrainarg2} to 64 sandstone of Knockback 1 set slot 6 of {hikabrainarg2} to 64 sandstone of Knockback 1 set slot 7 of {hikabrainarg2} to 64 sandstone of Knockback 1 set slot 8 of {hikabrainarg2} to 64 sandstone of Knockback 1 on walk on a 35:14: if {hikabrainarena} is false: if name of player is "%{lainebleu}%": add 1 to {score.%{lainebleu}%} teleport {hikabrainarg2} to {spawn2hika} teleport {hikabrainexecutor} to {spawn1hika} make server execute command "regen" set slot 3 of {hikabrainexecutor} to 64 sandstone of Knockback 1 set slot 4 of {hikabrainexecutor} to 64 sandstone of Knockback 1 set slot 5 of {hikabrainexecutor} to 64 sandstone of Knockback 1 set slot 6 of {hikabrainexecutor} to 64 sandstone of Knockback 1 set slot 7 of {hikabrainexecutor} to 64 sandstone of Knockback 1 set slot 8 of {hikabrainexecutor} to 64 sandstone of Knockback 1 set slot 3 of {hikabrainarg2} to 64 sandstone of Knockback 1 set slot 4 of {hikabrainarg2} to 64 sandstone of Knockback 1 set slot 5 of {hikabrainarg2} to 64 sandstone of Knockback 1 set slot 6 of {hikabrainarg2} to 64 sandstone of Knockback 1 set slot 7 of {hikabrainarg2} to 64 sandstone of Knockback 1 set slot 8 of {hikabrainarg2} to 64 sandstone of Knockback 1 every 1 seconds: if {hikabrainarena} is false: if {score.%{lainebleu}%} is 5: message "&4Partie termine gg" to {lainebleu} teleport {hikabrainexecutor} to {hub} teleport {hikabrainarg2} to {hub} make server execute command "regen" set {score.%{lainerouge}%} to 0 set {score.%{lainebleu}%} to 0 make console execute command "clear %{hikabrainexecutor}%" make console execute command "clear %{hikabrainarg2}%" remove Leggings from {hikabrainarg2} remove boots from {hikabrainarg2} remove Helmet from {hikabrainarg2} remove chestplate from {hikabrainarg2} remove Leggings from {hikabrainexecutor} remove boots from {hikabrainexecutor} remove Helmet from {hikabrainexecutor} remove chestplate from {hikabrainexecutor} set {hikabrainarena} to true every 1 seconds: if {hikabrainarena} is false: if {score.%{lainerouge}%} is 5: message "&4Partie termine gg" to {lainerouge} teleport {hikabrainarg2} to {hub} teleport {hikabrainexecutor} to {hub} make server execute command "regen" set {score.%{lainerouge}%} to 0 set {score.%{lainebleu}%} to 0 make console execute command "clear %{hikabrainexecutor}%" make console execute command "clear %{hikabrainarg2}%" remove Leggings from {hikabrainarg2} remove boots from {hikabrainarg2} remove Helmet from {hikabrainarg2} remove chestplate from {hikabrainarg2} remove Leggings from {hikabrainexecutor} remove boots from {hikabrainexecutor} remove Helmet from {hikabrainexecutor} remove chestplate from {hikabrainexecutor} set {hikabrainarena} to true on death of player: if {hikabrainarena} is false: if name of player is "%{lainebleu}%": heal the victim wait 5 ticks teleport {lainebleu} to {spawn1hika} equip {hikabrainexecutor} with all leather armour of Protection 1 #Armure joueur 2 set slot 0 of {hikabrainexecutor} to 1 iron sword of Sharpness 1 set slot 1 of {hikabrainexecutor} to 1 iron pickaxe of efficiency 2 set slot 2 of {hikabrainarg2} to 64 322 set slot 3 of {hikabrainexecutor} to 64 sandstone of Knockback 1 set slot 4 of {hikabrainexecutor} to 64 sandstone of Knockback 1 set slot 5 of {hikabrainexecutor} to 64 sandstone of Knockback 1 set slot 6 of {hikabrainexecutor} to 64 sandstone of Knockback 1 set slot 7 of {hikabrainexecutor} to 64 sandstone of Knockback 1 set slot 8 of {hikabrainexecutor} to 64 sandstone of Knockback 1 make server execute command "clearlag" on death of player: if {hikabrainarena} is false: if name of player is "%{lainerouge}%": heal the victim wait 5 ticks teleport {lainerouge} to {spawn2hika} equip {hikabrainarg2} with all leather armour of Protection 1 #Armure joueur 2 set slot 0 of {hikabrainarg2} to 1 iron sword of Sharpness 1 set slot 1 of {hikabrainarg2} to 1 iron pickaxe of efficiency 2 set slot 2 of {hikabrainarg2} to 64 322 set slot 3 of {hikabrainarg2} to 64 sandstone of Knockback 1 set slot 4 of {hikabrainarg2} to 64 sandstone of Knockback 1 set slot 5 of {hikabrainarg2} to 64 sandstone of Knockback 1 set slot 6 of {hikabrainarg2} to 64 sandstone of Knockback 1 set slot 7 of {hikabrainarg2} to 64 sandstone of Knockback 1 set slot 8 of {hikabrainarg2} to 64 sandstone of Knockback 1 make server execute command "clearlag" on death of player: if {hikabrainarena} is false: if name of player is "%{lainerouge}%" or "%{lainebleu}%": clear drops set death message to "" on place: if block below block is glass: world is "Hikabrain" cancel event on place: if block below block is wool: world is "Hikabrain" cancel event on disconnect: if name of player is "%{hikabrainarg2}%" or "%{hikabrainexecutor}%": teleport {hikabrainexecutor} to {hub} teleport {hikabrainarg2} to {hub} set {hikabrainarena} to true make console execute command "clear %{hikabrainexecutor}%" make console execute command "clear %{hikabrainarg2}%" remove Leggings from {hikabrainarg2} remove boots from {hikabrainarg2} remove Helmet from {hikabrainarg2} remove chestplate from {hikabrainarg2} remove Leggings from {hikabrainexecutor} remove boots from {hikabrainexecutor} remove Helmet from {hikabrainexecutor} remove chestplate from {hikabrainexecutor} make server execute command "regen" on break: world is "Hikabrain" add location of block to {broken.blocks::*} add type of block to {broken.type::*} set {ignore.locations::%location of event-block%} to true on place: world is "Hikabrain" add location of block to {placed.blocks::*} set {ignore.locations::%location of event-block%} to true command /regen: trigger: loop {broken.blocks::*}: set {_loc} to loop-value set block at {_loc} to {broken.type::%loop-index%} loop {placed.blocks::*}: set {_loc} to loop-value set block at {_loc} to air delete {broken.blocks::*} delete {placed.blocks::*} delete {broken.type::*} delete {ignore.locations::*} command /arenaboyhika: permission : admin trigger: set {hikabrainarena} to true clear {InReset}
Messages recommandés