Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Fonction
- function JoinShootcraft(t: text, p: player):
- if {shootcraft::%{_t}%} exist:
- if {shootcraft.%{_p}%.IsInGame} doesn't exist:
- if {IsStarted.shootcraft.%{_t}%} doesn't exist:
- if {speechchecknumber.shootcraft.%{_t}%} doesn't exist:
- scoreboardwait({_p})
- teleport {_p} to {lobby.shootcraft.%{_t}%}
- clear {_p}'s inventory
- wait 1 tick
- set slot 8 of {_p} to wooden door named "&cQuitter"
- set {speechchecknumber.shootcraft.%{_t}%} to 1
- set {player.shootcraft.%{_t}%.%{speechchecknumber.shootcraft.%{_t}%}%} to {_p}
- set {shootcraft.%{_p}%.IsInGame} to {_t}
- add {_p} to {shootcraft.%{_t}%::list::*}
- loop {shootcraft.%{_t}%::list::*}:
- send "&6[ShootCraft] &a%{_p}% &fa rejoint la partie. &c(%{speechchecknumber.shootcraft.%{_t}%}%/12)" to loop-value
- else if {speechchecknumber.shootcraft.%{_t}%} < 12:
- scoreboardwait({_p})
- teleport {_p} to {lobby.shootcraft.%{_t}%}
- clear {_p}'s inventory
- wait 1 tick
- set slot 8 of {_p} to wooden door named "&cQuitter"
- add 1 to {speechchecknumber.shootcraft.%{_t}%}
- set {player.shootcraft.%{_t}%.%{speechchecknumber.shootcraft.%{_t}%}%} to {_p}
- set {shootcraft.%{_p}%.IsInGame} to {_t}
- add {_p} to {shootcraft.%{_t}%::list::*}
- loop {shootcraft.%{_t}%::list::*}:
- send "&6[ShootCraft] &a%{_p}% &fa rejoint la partie. &a(%{speechchecknumber.shootcraft.%{_t}%}%/12)" to loop-value
- if {speechchecknumber.shootcraft.%{_t}%} = 2:
- set {time.game.shootcraft.%{_t}%} to 120
- while {player.shootcraft.%{_t}%.2} exist:
- {time.game.shootcraft.%{_t}%} exist
- if {time.game.shootcraft.%{_t}%} = 60:
- loop {shootcraft.%{_t}%::list::*}:
- send "&6[ShootCraft]&f La partie commence dans 1 minute." to loop-value
- wait 1 second
- remove 1 from {time.game.shootcraft.%{_t}%}
- else if {time.game.shootcraft.%{_t}%} = 30:
- loop {shootcraft.%{_t}%::list::*}:
- send "&6[ShootCraft]&f La partie commence dans 30 secondes." to loop-value
- wait 1 second
- remove 1 from {time.game.shootcraft.%{_t}%}
- else if {time.game.shootcraft.%{_t}%} = 15:
- loop {shootcraft.%{_t}%::list::*}:
- send "&6[ShootCraft]&f La partie commence dans 15 secondes." to loop-value
- wait 1 second
- remove 1 from {time.game.shootcraft.%{_t}%}
- else if {time.game.shootcraft.%{_t}%} > 5:
- wait 1 second
- remove 1 from {time.game.shootcraft.%{_t}%}
- else if {time.game.shootcraft.%{_t}%} > 1:
- loop {shootcraft.%{_t}%::list::*}:
- send "&6[ShootCraft]&f La partie commence dans %{time.game.shootcraft.%{_t}%}% secondes." to loop-value
- wait 1 second
- remove 1 from {time.game.shootcraft.%{_t}%}
- else if {time.game.shootcraft.%{_t}%} > 0:
- loop {shootcraft.%{_t}%::list::*}:
- send "&6[ShootCraft`]&f La partie commence dans 1 seconde." to loop-value
- wait 1 second
- remove 1 from {time.game.shootcraft.%{_t}%}
- else:
- clear {time.game.shootcraft.%{_t}%}
- set {IsStarted.shootcraft.%{_t}%} to true
- set {_thenumber} to 1
- loop {shootcraft.%{_t}%::list::*}:
- send "&6[ShootCraft]&f La partie commence !" to loop-value
- teleport loop-value to {spawn.%{_thenumber}%.shootcraft.%{_t}%}
- set {vie.%loop-value%.shootcraft} to 2
- add 1 to {_thenumber}
- set loop-value's health to 2
- clear loop-value's inventory
- set {_player} to loop-value
- give a stick named "Baton tueur !" to {_player}
- set {shootcraft.gametime.%{_t}%} to now
- while {IsStarted.shootcraft.%{_t}%} exist:
- wait 1 second
- if difference between now and {shootcraft.gametime.%{_t}%} >= 3 minutes:
- loop {shootcraft.%{_t}%::list::*}:
- send "&6[ShootCraft] &fLa partie est terminée." to loop-value
- send "" to loop-value
- set {_vainqueur} to 0
- set {_vainqueurname} to "Gagnant"
- loop {shootcraft.%{_t}%::list::*}:
- if {kills.shootcraft.%loop-value-2%} > {_vainqueur}:
- set {_vainqueur} to {kills.shootcraft.%loop-value-2%}
- set {_vainqueurname} to loop-value-2
- send "&fVainqueur: &b%{_vainqueurname}%&f avec &c%{_vainqueur}% kills&f." to loop-value
- #Arret du jeu
- set {testremoveplayerxd.shootcraft.%{_t}%} to 1
- loop {speechchecknumber.shootcraft.%{_t}%} times:
- {player.shootcraft.%{_t}%.%{testremoveplayerxd.shootcraft.%{_t}%}%} = {_p}:
- clear {player.shootcraft.%{_t}%.%{testremoveplayerxd.shootcraft.%{_t}%}%}
- stop loop
- else:
- add 1 to {testremoveplayerxd.shootcraft.%{_t}%}
- loop 15 times:
- set {_testremoveplayerxd2.shootcraft.%{_t}%} to {testremoveplayerxd.shootcraft.%{_t}%} + 1
- {player.shootcraft.%{_t}%.%{testremoveplayerxd2.shootcraft.%{_t}%}%} exist:
- set {player.shootcraft.%{_t}%.%{testremoveplayerxd.shootcraft.%{_t}%}%} to {player.shootcraft.%{_t}%.%{testremoveplayerxd2.shootcraft.%{_t}%}%}
- clear {player.shootcraft.%{_t}%.%{testremoveplayerxd2.shootcraft.%{_t}%}%}
- add 1 to {testremoveplayerxd.shootcraft.%{_t}%}
- else:
- stop loop
- clear {testremoveplayerxd.shootcraft.%{_t}%}
- clear {speechchecknumber.shootcraft.%{_t}%}
- clear {time.game.shootcraft.%{_t}%}
- clear {IsStarted.shootcraft.%{_t}%}
- clear {IsStarted.shootcraft.%{_t}%}
- clear {shootcraft.gametime.%{_t}%}
- loop {shootcraft.%{_t}%::list::*}:
- send "&6[ShootCraft] &b%loop-value% &fa gagné." to loop-value
- clear {player.shootcraft.%{_t}%.1}
- clear {shootcraft.%loop-value%.IsInGame}
- clear {baton.shootcraft.%loop-value%}
- clear {morts.shootcraft.%loop-value%}
- clear {kills.shootcraft.%loop-value%}
- clear {nobouger.shootcraft.%loop-value%}
- clear {vie.%loop-value%.shootcraft}
- clear loop-value's inventory
- heal loop-value
- clear {shootcraft.%{_t}%::list::*}
- else if {speechchecknumber.shootcraft.%{_t}%} = 12:
- {time.game.shootcraft.%{_t}%} > 10:
- set {time.game.shootcraft.%{_t}%} to 10
- else if {speechchecknumber.shootcraft.%{_t}%} = 6:
- {time.game.shootcraft.%{_t}%} > 60:
- set {time.game.shootcraft.%{_t}%} to 60
- else:
- send "&cErreur: Le ShootCraft `%{_t}%` est complet." to {_p}
- else:
- send "&cErreur: Le ShootCraft `%{_t}%` est déjà lancé." to {_p}
- else:
- send "&cErreur: Vous êtes déjà dans une partie ShootCraft." to {_p}
- else:
- send "&cErreur: Le ShootCraft `%{_t}%` n'existe pas." to {_p}
- function QuitShootcraft(t: text, p: player):
- if {shootcraft::%{_t}%} exist:
- if {shootcraft.%{_p}%.IsInGame} = {_t}:
- if {IsStarted.shootcraft.%{_t}%} doesn't exist:
- set {testremoveplayerxd.shootcraft.%{_t}%} to 1
- loop {speechchecknumber.shootcraft.%{_t}%} times:
- {player.shootcraft.%{_t}%.%{testremoveplayerxd.shootcraft.%{_t}%}%} = {_p}:
- clear {player.shootcraft.%{_t}%.%{testremoveplayerxd.shootcraft.%{_t}%}%}
- stop loop
- else:
- add 1 to {testremoveplayerxd.shootcraft.%{_t}%}
- loop 15 times:
- set {_testremoveplayerxd2.shootcraft.%{_t}%} to {testremoveplayerxd.shootcraft.%{_t}%} + 1
- {player.shootcraft.%{_t}%.%{testremoveplayerxd2.shootcraft.%{_t}%}%} exist:
- set {player.shootcraft.%{_t}%.%{testremoveplayerxd.shootcraft.%{_t}%}%} to {player.shootcraft.%{_t}%.%{testremoveplayerxd2.shootcraft.%{_t}%}%}
- clear {player.shootcraft.%{_t}%.%{testremoveplayerxd2.shootcraft.%{_t}%}%}
- add 1 to {testremoveplayerxd.shootcraft.%{_t}%}
- else:
- stop loop
- remove 1 from {speechchecknumber.shootcraft.%{_t}%}
- if {speechchecknumber.shootcraft.%{_t}%} = 0:
- clear {speechchecknumber.shootcraft.%{_t}%}
- else if {speechchecknumber.shootcraft.%{_t}%} = 1:
- clear {time.game.shootcraft.%{_t}%}
- clear {shootcraft.%{_p}%.IsInGame}
- remove {_p} from {shootcraft.%{_t}%::list::*}
- send "&cVous avez quitté le jeu." to {_p}
- clear {_p}'s inventory
- loop {shootcraft.%{_t}%::list::*}:
- send "&6[ShootCraft] &c%{_p}% &fa quitté la partie. &e(%{speechchecknumber.shootcraft.%{_t}%}%/12)" to loop-value
- else:
- set {testremoveplayerxd.shootcraft.%{_t}%} to 1
- loop {speechchecknumber.shootcraft.%{_t}%} times:
- {player.shootcraft.%{_t}%.%{testremoveplayerxd.shootcraft.%{_t}%}%} = {_p}:
- clear {player.shootcraft.%{_t}%.%{testremoveplayerxd.shootcraft.%{_t}%}%}
- stop loop
- else:
- add 1 to {testremoveplayerxd.shootcraft.%{_t}%}
- loop 15 times:
- set {_testremoveplayerxd2.shootcraft.%{_t}%} to {testremoveplayerxd.shootcraft.%{_t}%} + 1
- {player.shootcraft.%{_t}%.%{testremoveplayerxd2.shootcraft.%{_t}%}%} exist:
- set {player.shootcraft.%{_t}%.%{testremoveplayerxd.shootcraft.%{_t}%}%} to {player.shootcraft.%{_t}%.%{testremoveplayerxd2.shootcraft.%{_t}%}%}
- clear {player.shootcraft.%{_t}%.%{testremoveplayerxd2.shootcraft.%{_t}%}%}
- add 1 to {testremoveplayerxd.shootcraft.%{_t}%}
- else:
- stop loop
- remove 1 from {speechchecknumber.shootcraft.%{_t}%}
- clear {baton.shootcraft.%{_p}%}
- clear {morts.shootcraft.%{_p}%}
- clear {kills.shootcraft.%{_p}%}
- clear {nobouger.shootcraft.%{_p}%}
- clear {vie.%{_p}%.shootcraft}
- clear {shootcraft.%{_p}%.IsInGame}
- heal {_p}
- remove {_p} from {shootcraft.%{_t}%::list::*}
- clear {_p}'s inventory
- loop {shootcraft.%{_t}%::list::*}:
- send "&6[ShootCraft] &b%{_p}% &fest mort." to loop-value
- if {speechchecknumber.shootcraft.%{_t}%} = 1:
- clear {testremoveplayerxd.shootcraft.%{_t}%}
- clear {speechchecknumber.shootcraft.%{_t}%}
- clear {time.game.shootcraft.%{_t}%}
- clear {IsStarted.shootcraft.%{_t}%}
- clear {shootcraft.gametime.%{_t}%}
- loop {shootcraft.%{_t}%::list::*}:
- send "&6[ShootCraft] &b%loop-value% &fa gagné." to loop-value
- clear {player.shootcraft.%{_t}%.1}
- clear {shootcraft.%loop-value%.IsInGame}
- clear {baton.shootcraft.%loop-value%}
- clear {morts.shootcraft.%loop-value%}
- clear {kills.shootcraft.%loop-value%}
- clear {nobouger.shootcraft.%loop-value%}
- clear {vie.%loop-value%.shootcraft}
- heal loop-value
- clear loop-value's inventory
- clear {shootcraft.%{_t}%::list::*}
- else:
- send "&cErreur: Vous n'êtes pas dans la partie ShootCraft `%{_t}%`." to {_p}
- else:
- send "&cErreur: Le ShootCraft `%{_t}%` n'existe pas." to {_p}
- function scoreboardwait(p:player):
- while {IsStarted.shootcraft.%{shootcraft.%{_p}%.IsInGame}%} doesn't exist:
- wipe {_p}'s sidebar
- wait 1 tick
- set name of sidebar of {_p} to " &6&lFun&f&lCraft&f.net "
- set score "" in sidebar of {_p} to 7
- set score "&7Jeu: &fShootCraft" in sidebar of {_p} to 6
- if {speechchecknumber.shootcraft.%{shootcraft.%{_p}%.IsInGame}%} = 1:
- set score "&7Joueurs&f: &c1/12" in sidebar of {_p} to 5
- else:
- set score "&7Joueurs&f: &a%{speechchecknumber.shootcraft.%{shootcraft.%{_p}%.IsInGame}%}%/12" in sidebar of {_p} to 5
- set score "" in sidebar of {_p} to 4
- if {player.shootcraft.%{shootcraft.%{_p}%.IsInGame}%.2} doesn't exist:
- set score "&cPas assez de joueurs" in sidebar of {_p} to 3
- else:
- set score "&7Début dans %{time.game.shootcraft.%{shootcraft.%{_p}%.IsInGame}%}%s" in sidebar of {_p} to 3
- while {IsStarted.shootcraft.%{shootcraft.%{_p}%.IsInGame}%} exist:
- wipe {_p}'s sidebar
- wait 1 tick
- set name of sidebar of {_p} to " &6&lFun&f&lCraft&f.net "
- set score "" in sidebar of {_p} to 13
- set score "&fTemps restant: &6%{shootcraft.gametime.%{shootcraft.%{_p}%.IsInGame}%}%" in sidebar of {_p} to 12
- set score "&fKills: &6%{kills.shootcraft.%{_p}%}%" in sidebar of {_p} to 11
- set score "" in sidebar of {_p} to 10
- #Calcul des 5
- #1
- set {_vainqueur.1.points} to 0
- set {_vainqueur.1.name} to "&fAucun joueur"
- loop {shootcraft.%{shootcraft.%{_p}%.IsInGame}%::list::*}:
- if {kills.shootcraft.%loop-value%} > {_vainqueur.1.points}:
- set {_vainqueur.1.points} to {kills.shootcraft.%loop-value%}
- set {_vainqueur.1.name} to loop-value
- #2
- set {_vainqueur.2.points} to 0
- set {_vainqueur.2.name} to "&fAucun joueur"
- loop {shootcraft.%{shootcraft.%{_p}%.IsInGame}%::list::*}:
- if {kills.shootcraft.%loop-value%} > {_vainqueur.2.points}:
- loop-value isn't {_vainqueur.1.name}
- set {_vainqueur.2.points} to {kills.shootcraft.%loop-value%}
- set {_vainqueur.2.name} to loop-value
- #3
- set {_vainqueur.3.points} to 0
- set {_vainqueur.3.name} to "&fAucun joueur"
- loop {shootcraft.%{shootcraft.%{_p}%.IsInGame}%::list::*}:
- if {kills.shootcraft.%loop-value%} > {_vainqueur.3.points}:
- loop-value isn't {_vainqueur.1.name} or {_vainqueur.2.name}
- set {_vainqueur.3.points} to {kills.shootcraft.%loop-value%}
- set {_vainqueur.3.name} to loop-value
- #4
- set {_vainqueur.4.points} to 0
- set {_vainqueur.4.name} to "&fAucun joueur"
- loop {shootcraft.%{shootcraft.%{_p}%.IsInGame}%::list::*}:
- if {kills.shootcraft.%loop-value%} > {_vainqueur.4.points}:
- loop-value isn't {_vainqueur.1.name} or {_vainqueur.2.name} or {_vainqueur.3.name}
- set {_vainqueur.4.points} to {kills.shootcraft.%loop-value%}
- set {_vainqueur.4.name} to loop-value
- #5
- set {_vainqueur.5.points} to 0
- set {_vainqueur.5.name} to "&fAucun joueur"
- loop {shootcraft.%{shootcraft.%{_p}%.IsInGame}%::list::*}:
- if {kills.shootcraft.%loop-value%} > {_vainqueur.5.points}:
- loop-value isn't {_vainqueur.1.name} or {_vainqueur.2.name} or {_vainqueur.3.name} or {_vainqueur.4.name}
- set {_vainqueur.5.points} to {kills.shootcraft.%loop-value%}
- set {_vainqueur.5.name} to loop-value
- set score "&fTop Kills:" in sidebar of {_p} to 9
- set score "&71. &f%{_vainqueur.1.name}% (%{_vainqueur.1.points}%)" in sidebar of {_p} to 8
- set score "&72. &f%{_vainqueur.2.name}% (%{_vainqueur.2.points}%)" in sidebar of {_p} to 7
- set score "&73. &f%{_vainqueur.3.name}% (%{_vainqueur.3.points}%)" in sidebar of {_p} to 6
- set score "&74. &f%{_vainqueur.4.name}% (%{_vainqueur.4.points}%)" in sidebar of {_p} to 5
- set score "&75. &f%{_vainqueur.5.name}% (%{_vainqueur.5.points}%)" in sidebar of {_p} to 4
- set score "" in sidebar of {_p} to 3
- set score "&7Les alliances" in sidebar of {_p} to 2
- set score "&7sont interdites" in sidebar of {_p} to 1
- #Commandes et options
- options:
- prefix: &f[&6ShootCraft&f]
- permission: shootcraft.use
- command /shootcraft [<text>] [<text>] [<number>]:
- permission: {@permission}
- trigger:
- if arg-1 is "create":
- if arg-2 exist:
- if {shootcraft::%arg-2%} doesn't exist:
- send "{@prefix} &fVous avez créé le shootcraft nommé &b`%arg-2%`&f." to sender
- set {shootcraft::%arg-2%} to arg-2
- else:
- send "&cErreur: Le shootcraft `%arg-2%` existe déjà." to sender
- else:
- send "&cUtilisation: /shootcraft create <Nom>" to sender
- else if arg-1 is "delete":
- if arg-2 exist:
- if {shootcraft::%arg-2%} exist:
- send "{@prefix} &fVous avez supprimé le shootcraft nommé &b`%arg-2%`&f." to sender
- clear {shootcraft::%arg-2%}
- else:
- send "&cErreur: Le shootcraft `%arg-2%` n'existe pas." to sender
- else:
- send "&cUtilisation: /shootcraft delete <Nom>" to sender
- else if arg-1 is "list":
- set {_n} to 1
- loop {shootcraft::*}:
- send "%{_n}% - %loop-value%" to sender
- add 1 to {_n}
- if {_n} = 1:
- send "&cErreur: Aucun shootcraft n'a été créé" to sender
- else if arg-1 is "setlobby":
- if arg-2 exist:
- if {shootcraft::%arg-2%} exist:
- send "{@prefix} &fVous avez définit le lobby du shootcraft nommé &b`%arg-2%`&f." to sender
- set {lobby.shootcraft.%arg-2%} to player's location
- else:
- send "&cErreur: Le shootcraft `%arg-2%` n'existe pas." to sender
- else:
- send "&cUtilisation: /shootcraft setlobby <Nom>" to sender
- else if arg-1 is "setspawn":
- if arg-2 exist:
- if {shootcraft::%arg-2%} exist:
- if arg-3 is 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or 12:
- set {spawn.%arg-3%.shootcraft.%arg-2%} to player's location
- send "{@prefix} &fVous avez définit le point d'apparition numéro %arg-3% du shootcraft nommé &b`%arg-2%`&f." to sender
- else:
- send "&cUtilisation: /shootcraft setspawn <Nom> <1/2/3/4/5/6/7/8/9/10/11/12>" to sender
- else:
- send "&cErreur: Le shootcraft `%arg-2%` n'existe pas." to sender
- else:
- send "&cUtilisation: /shootcraft setspawn <Nom> <1/2/3/4/5/6/7/8/9/10/11/12>" to sender
- else if arg-1 is "join":
- if arg-2 exist:
- JoinShootcraft(arg-2, player)
- else:
- send "&cUtilisation: /shootcraft join <Nom>" to sender
- else if arg-1 is "quit":
- if arg-2 exist:
- QuitShootcraft(arg-2, player)
- else:
- send "&cUtilisation: /shootcraft join <Nom>" to sender
- else:
- send "&6------------------------------" to sender
- send "&6ShootCraft: Aide" to sender
- send "" to sender
- send "&a/shootcraft &bcreate <Nom> &f- Permet de créer un shootcraft" to sender
- send "&a/shootcraft &bdelete <Nom> &f- Permet de suprimmer un shootcraft" to sender
- send "&a/shootcraft &blist &f- Permet de lister les shootcraft" to sender
- send "&a/shootcraft &bsetlobby <Nom> &f- Permet de définir le lobby d'un minijeu shootcraft" to sender
- send "&a/shootcraft &bsetspawn <Nom> <1/2/3/4/5/6/7/8/9/10/11/12> &f- Permet de définir les points d'apparition d'un shootcraft" to sender
- send "&a/shootcraft &bjoin <Nom> &f- Permet de rejoindre un shootcraft" to sender
- send "&6--------------------------" to sender
- #Evenements
- on rightclick:
- if {shootcraft.%player%.IsInGame} exist:
- if player's tool is wooden door:
- QuitShootcraft({shootcraft.%player%.IsInGame}, player)
- else if player's tool is stick:
- if name of player's tool is "Baton tueur !":
- if {baton.shootcraft.%player%} doesn't exist:
- set {baton.shootcraft.%player%} to now
- if player's target exist:
- if {vie.%player's target%.shootcraft} = 2:
- set {_player} to player's target
- set {_player}'s health to 1
- else if {vie.%player's target%.shootcraft} < 2:
- kill player's target
- loop {shootcraft.%{shootcraft.%player%.IsInGame}%::list::*}:
- send "&6[ShootCraft] &b%player's target% &fa été tué par &b%player%&f." to loop-value
- add 1 to {kills.shootcraft.%player%}
- add 1 to {morts.shootcraft.%player's target%}
- set {vie.%player's target%.shootcraft} to 2
- set {_player} to player's target
- set {_player}'s health to 2
- if {kills.shootcraft.%player%} > {morts.shootcraft.%player%} + 1:
- loop {shootcraft.%{shootcraft.%player%.IsInGame}%::list::*}:
- send "&6[WOW] &b%player%&f a fait %{kills.shootcraft.%player%} - {morts.shootcraft.%player%}% kills d'affilé." to loop-value
- else if difference between now and {baton.shootcraft.%player%} is bigger than 1 second:
- set {baton.shootcraft.%player%} to now
- if player's target exist:
- if {vie.%player's target%.shootcraft} = 2:
- set {_player} to player's target
- set {_player}'s health to 1
- else if {vie.%player's target%.shootcraft} < 2:
- kill player's target
- loop {shootcraft.%{shootcraft.%player%.IsInGame}%::list::*}:
- send "&6[ShootCraft] &b%player's target% &fa été tué par &b%player%&f." to loop-value
- add 1 to {kills.shootcraft.%player%}
- add 1 to {morts.shootcraft.%player's target%}
- set {vie.%player's target%.shootcraft} to 2
- set {_player} to player's target
- set {_player}'s health to 2
- if {kills.shootcraft.%player%} > {morts.shootcraft.%player%} + 1:
- loop {shootcraft.%{shootcraft.%player%.IsInGame}%::list::*}:
- send "&6[WOW] &b%player%&f a fait %{kills.shootcraft.%player%} - {morts.shootcraft.%player%}% kills d'affilé." to loop-value
- On death:
- if {shootcraft.%player%.IsInGame} exist:
- heal player
- set {_thenumber} to 1
- loop 12 times:
- if {spawn.%{_thenumber}%.shootcraft.%{shootcraft.%player%.IsInGame}%.isoccuped} doesn't exist:
- teleport player to {spawn.%{_thenumber}%.shootcraft.%{shootcraft.%player%.IsInGame}%}
- set {spawn.%{_thenumber}%.shootcraft.%{shootcraft.%player%.IsInGame}%.isoccuped} to true
- set {nobouger.shootcraft.%player%} to true
- send player title "&bRespawn dans 3s" with subtitle "" for 1 second
- wait 1 second
- send player title "&bRespawn dans 2s" with subtitle "" for 1 second
- wait 1 second
- send player title "&bRespawn dans 1s" with subtitle "" for 1 second
- wait 1 second
- clear {nobouger.shootcraft.%player%}
- clear {spawn.%{_thenumber}%.shootcraft.%{shootcraft.%player%.IsInGame}%.isoccuped}
- On any move:
- if {nobouger.shootcraft.%player%} exist:
- cancel event
- on quit:
- QuitShootcraft({shootcraft.%{_p}%.IsInGame}, player)
- on break:
- {shootcraft.%{_p}%.IsInGame} exist:
- cancel event
- on damage:
- {shootcraft.%{_p}%.IsInGame} exist:
- cancel event
- on hunger meter change:
- {shootcraft.%{_p}%.IsInGame} exist:
- cancel event
- on inventory click:
- {shootcraft.%{_p}%.IsInGame} exist:
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment