Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /team [<text>] [<player>]:
- trigger:
- if arg 1 is "Blue":
- set {Equipe::%arg-player%} to "Blue"
- set arg-player tab name to "&9%arg-player%"
- #FLECHE
- add 1 to {Fleche.Blue.NB}
- set {Fleche.Blue.%{Fleche.Blue.NB}%} to arg-player
- send "&9%arg-player%&f est désormais dans l'équipe &9Bleue"
- command /reset:
- trigger:
- clear {Equipe::*}
- set {Fleche.Blue.NB} to 0
- clear {Fleche.Blue.1}
- clear {Fleche.Blue.2}
- clear {Fleche.Blue.3}
- clear {Fleche.Blue.4}
- send "&2&lOK ! :)"
- command /info:
- trigger:
- send "%{Fleche.Blue.NB}%"
- send "%{Fleche.Blue.1}%"
- send "%{Fleche.Blue.2}%"
- every 1 seconds:
- make all players execute command "/timermaj"
- command /timermaj:
- trigger:
- display board named "" to player
- set name of sidebar of player to " &3Jeu &bI "
- set score " " in sidebar of player to 5
- #---------------------------------------------------------------------------#
- # EQUIPE BLEUE JOUEUR1 #
- #---------------------------------------------------------------------------#
- set {_coordx1P1} to x-position of player
- set {_coordx2P1} to x-position of {Fleche.Blue.1}
- set {_distxP1} to {_coordx2P1}-{_coordx1P1}
- set {_coordz1P1} to z-position of player
- set {_coordz2P1} to z-position of {Fleche.Blue.1}
- set {_distzP1} to {_coordz2P1}-{_coordz1P1}
- set {_distxzP1} to sqrt of ({_distxP1}^2+{_distzP1}^2)
- set {_cosangleP1} to {_distxP1} / {_distxzP1}
- set {_sinangleP1} to {_distzP1} / {_distxzP1}
- if distance between player and {Fleche.Blue.1} is less than or equal to 50:
- set {Fleche.Color.%player%} to "&b&l"
- if distance between player and {Fleche.Blue.1} is more than or equal to 100:
- set {Fleche.Color.%player%} to "&9&l"
- if distance between player and {Fleche.Blue.1} is more than or equal to 200:
- set {Fleche.Color.%player%} to "&c&l"
- if distance between player and {Fleche.Blue.1} is more than or equal to 350:
- set {Fleche.Color.%player%} to "&4&l"
- if {Equipe::%player%} is "Blue":
- if {Fleche.Blue.1} is not player:
- if {_cosangleP1} is between -1 and -0.7:
- if player's horizontal facing is north:
- set score "&7&l%{Fleche.Blue.1}% %{Fleche.Color.%player%}%<" in sidebar of player to 5
- if player's horizontal facing is south:
- set score "&7&l%{Fleche.Blue.1}% %{Fleche.Color.%player%}%>" in sidebar of player to 5
- if player's horizontal facing is east:
- set score "&7&l%{Fleche.Blue.1}% %{Fleche.Color.%player%}%v" in sidebar of player to 5
- if player's horizontal facing is west:
- set score "&7&l%{Fleche.Blue.1}% %{Fleche.Color.%player%}%^" in sidebar of player to 5
- else if {_cosangleP1} is between 0.7 and 1:
- if player's horizontal facing is north:
- set score "&7&l%{Fleche.Blue.1}% %{Fleche.Color.%player%}%>" in sidebar of player to 5
- if player's horizontal facing is south:
- set score "&7&l%{Fleche.Blue.1}% %{Fleche.Color.%player%}%<" in sidebar of player to 5
- if player's horizontal facing is east:
- set score "&7&l%{Fleche.Blue.1}% %{Fleche.Color.%player%}%^" in sidebar of player to 5
- if player's horizontal facing is west:
- set score "&7&l%{Fleche.Blue.1}% %{Fleche.Color.%player%}%v" in sidebar of player to 5
- else if {_sinangleP1} is between 0.7 and 1:
- if player's horizontal facing is north:
- set score "&7&l%{Fleche.Blue.1}% %{Fleche.Color.%player%}%v" in sidebar of player to 5
- if player's horizontal facing is south:
- set score "&7&l%{Fleche.Blue.1}% %{Fleche.Color.%player%}%^" in sidebar of player to 5
- if player's horizontal facing is east:
- set score "&7&l%{Fleche.Blue.1}% %{Fleche.Color.%player%}%>" in sidebar of player to 5
- if player's horizontal facing is west:
- set score "&7&l%{Fleche.Blue.1}% %{Fleche.Color.%player%}%<" in sidebar of player to 5
- else:
- if player's horizontal facing is north:
- set score "&7&l%{Fleche.Blue.1}% %{Fleche.Color.%player%}%^" in sidebar of player to 5
- if player's horizontal facing is south:
- set score "&7&l%{Fleche.Blue.1}% %{Fleche.Color.%player%}%v" in sidebar of player to 5
- if player's horizontal facing is east:
- set score "&7&l%{Fleche.Blue.1}% %{Fleche.Color.%player%}%<" in sidebar of player to 5
- if player's horizontal facing is west:
- set score "&7&l%{Fleche.Blue.1}% %{Fleche.Color.%player%}%>" in sidebar of player to 5
- #---------------------------------------------------------------------------#
- # EQUIPE BLEUE JOUEUR2 #
- #---------------------------------------------------------------------------#
- set {_coordx1P2} to x-position of player
- set {_coordx2P2} to x-position of {Fleche.Blue.2}
- set {_distxP2} to {_coordx2P2}-{_coordx1P2}
- set {_coordz1P2} to z-position of player
- set {_coordz2P2} to z-position of {Fleche.Blue.2}
- set {_distzP2} to {_coordz2P2}-{_coordz1P2}
- set {_distxzP2} to sqrt of ({_distxP2}^2+{_distzP2}^2)
- set {_cosangleP2} to {_distxP2} / {_distxzP2}
- set {_sinangleP2} to {_distzP2} / {_distxzP2}
- if distance between player and {Fleche.Blue.2} is less than or equal to 50:
- set {Fleche.Color.%player%} to "&b&l"
- if distance between player and {Fleche.Blue.2} is more than or equal to 100:
- set {Fleche.Color.%player%} to "&9&l"
- if distance between player and {Fleche.Blue.2} is more than or equal to 200:
- set {Fleche.Color.%player%} to "&c&l"
- if distance between player and {Fleche.Blue.2} is more than or equal to 350:
- set {Fleche.Color.%player%} to "&4&l"
- if {Equipe::%player%} is "Blue":
- if {Fleche.Blue.2} is not player:
- if {_cosangleP2} is between -1 and -0.7:
- if player's horizontal facing is north:
- set score "&7&l%{Fleche.Blue.2}% %{Fleche.Color.%player%}%<" in sidebar of player to 5
- if player's horizontal facing is south:
- set score "&7&l%{Fleche.Blue.2}% %{Fleche.Color.%player%}%>" in sidebar of player to 5
- if player's horizontal facing is east:
- set score "&7&l%{Fleche.Blue.2}% %{Fleche.Color.%player%}%v" in sidebar of player to 5
- if player's horizontal facing is west:
- set score "&7&l%{Fleche.Blue.2}% %{Fleche.Color.%player%}%^" in sidebar of player to 5
- else if {_cosangleP2} is between 0.7 and 1:
- if player's horizontal facing is north:
- set score "&7&l%{Fleche.Blue.2}% %{Fleche.Color.%player%}%>" in sidebar of player to 5
- if player's horizontal facing is south:
- set score "&7&l%{Fleche.Blue.2}% %{Fleche.Color.%player%}%<" in sidebar of player to 5
- if player's horizontal facing is east:
- set score "&7&l%{Fleche.Blue.2}% %{Fleche.Color.%player%}%^" in sidebar of player to 5
- if player's horizontal facing is west:
- set score "&7&l%{Fleche.Blue.2}% %{Fleche.Color.%player%}%v" in sidebar of player to 5
- else if {_sinangleP2} is between 0.7 and 1:
- if player's horizontal facing is north:
- set score "&7&l%{Fleche.Blue.2}% %{Fleche.Color.%player%}%v" in sidebar of player to 5
- if player's horizontal facing is south:
- set score "&7&l%{Fleche.Blue.2}% %{Fleche.Color.%player%}%^" in sidebar of player to 5
- if player's horizontal facing is east:
- set score "&7&l%{Fleche.Blue.2}% %{Fleche.Color.%player%}%>" in sidebar of player to 5
- if player's horizontal facing is west:
- set score "&7&l%{Fleche.Blue.2}% %{Fleche.Color.%player%}%<" in sidebar of player to 5
- else:
- if player's horizontal facing is north:
- set score "&7&l%{Fleche.Blue.2}% %{Fleche.Color.%player%}%^" in sidebar of player to 5
- if player's horizontal facing is south:
- set score "&7&l%{Fleche.Blue.2}% %{Fleche.Color.%player%}%v" in sidebar of player to 5
- if player's horizontal facing is east:
- set score "&7&l%{Fleche.Blue.2}% %{Fleche.Color.%player%}%<" in sidebar of player to 5
- if player's horizontal facing is west:
- set score "&7&l%{Fleche.Blue.2}% %{Fleche.Color.%player%}%>" in sidebar of player to 5
Add Comment
Please, Sign In to add comment