Advertisement
Guest User

Tournoi MJKits

a guest
Jul 19th, 2015
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.98 KB | None | 0 0
  1. #Skript by: Oxylas aliases SaladeNuggets
  2.  
  3. command /tournoi <text>
  4.     trigger:
  5.         if arg 1 is "start":
  6.             if player has permission "t.mj.use":
  7.                 send json of "&7Le tournoi commence dans 30 secondes" to all players
  8.                 send json of "" then "&6Rejoindre" run "/tournoi join" then "&7|" then "&6Quitter" run "/tournoi quit" then "&7|" then "&6Regles" run "/tournoi regle" to all players
  9.                 wait 15 seconds
  10.                 send json of "&7Le tournoi commence dans 15 secondes" to all players
  11.                 send json of "" then "&6Rejoindre" run "/tournoi join" then "&7|" then "&6Quitter" run "/tournoi quit" then "&7|" then "&6Regles" run "/tournoi regle" to all players
  12.                 wait 5 seconds
  13.                 send json of "&7Le tournoi commence dans 10 secondes" to all players
  14.                 send json of "" then "&6Rejoindre" run "/tournoi join" then "&7|" then "&6Quitter" run "/tournoi quit" then "&7|" then "&6Regles" run "/tournoi regle" to all players
  15.                 wait 5 seconds
  16.                 send json of "&7Le tournoi commence dans 5 secondes" to all players
  17.                 send json of "" then "&6Rejoindre" run "/tournoi join" then "&7|" then "&6Quitter" run "/tournoi quit" then "&7|" then "&6Regles" run "/tournoi regle" to all players
  18.                 wait 5 seconds
  19.                 loop {tournoi.joueur::*}:
  20.                     teleport loop-value to {tournoi.loc}
  21.                     send "&7Teleportation au Tournoi" to loop-value
  22.         if arg 1 is "join":
  23.             add player to {tournoi.joueur::*}
  24.             set {tournoi.on.%player%} to true
  25.             send "&7Tu as rejoint le tournoi"
  26.         if arg 1 is "quit":
  27.             remove player to {tournoi.joueur::*}
  28.             set {tournoi.on.%player%} to false
  29.             send "&7Tu as quitter le tournoi"
  30.         if arg 1 is "set":
  31.             if player has permission "t.mj.use":
  32.                 set {tournoi.loc} to location of player
  33.                 send "&7Tu as mis en place le tournoi"
  34.         if arg 1 is "regle":
  35.             message "&c----&7[&2Règle Tournoi&7]&c----"
  36.             message "&6Team &7= &cBan 10 minutes"
  37.             message "&6Cheat &7= &cBan a vie"
  38.             message "&6Camp &7= &cKick"
  39.             message "&c--------------"
  40.         if arg 1 is "help" or "info" or "?":
  41.             message "&c----&7[&2Help Tournoi&7]&c----"
  42.             message "&7- &6/tournoi start &7(Démarre un tournoi) &c&lOP COMMAND"
  43.             message "&7- &6/tournoi set &7(Met en place le tournoi) &c&lOP COMMAND"
  44.             message "&7- &6/tournoi stop &7(Stop un tournoi) &c&lOP COMMAND"
  45.             message "&7- &6/tournoi sdeath &7(Met en place le point de mort) &c&lOP COMMAND"
  46.             message "&7- &6/tournoi join &7(Permet de rejoindre un tournoi)"
  47.             message "&7- &6/tournoi quit &7(Permet de quitter un tournoi)"
  48.             message "&7- &6/tournoi regle &7(Permet de savoir les règles des tournoi)"
  49.             message "&c----------------"
  50.         if arg 1 is "sdeath":
  51.             if player has permission "t.mj.use":
  52.                 set {tournoi.deathplace} to location of player
  53.                 send "&7Tu as mis en place le point de mort du tournoi"
  54.  
  55. On death:
  56.     if {tournoi.on.%player%} is true:
  57.         set {tournoi.on.%player%} to false
  58.         remove player to {tournoi.joueur::*}
  59.         teleport player to {tournoi.deathplace}
  60.  
  61. On quit:
  62.     set {tournoi.on.%player%} to false
  63.     remove player to {tournoi.joueur::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement