Guest User

JumpLeague

a guest
Dec 15th, 2015
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.10 KB | None | 0 0
  1. options:
  2.     logo: &7[&6JumpLeague&7] &f
  3.    
  4. variables:
  5.     {jl.joueurs} = 0
  6.     {jl.start.joueurs} = 0
  7.     {jl.jump1} = 0
  8.     {jl.jump2} = 0
  9.     {jl.jump3} = 0
  10.     {jl.jump4} = 0
  11.     {jl.jump5} = 0
  12.    
  13. on join:
  14.     if player is op:
  15.         send "{@logo}Vous êtes opérateur, et donc en spectateur."
  16.        
  17.     else:
  18.         clear inventory of player
  19.         teleport player to {jl.teleport.waitroom}
  20.         add 1 to {jl.joueurs}
  21.         add 1 to {jl.start.joueurs}
  22.         if {jl.joueurs} is 1:
  23.             add player to {jl.jump1}
  24.         else if {jl.joueurs} is 2:
  25.             add player to {jl.jump2}
  26.         else if {jl.joueurs} is 3:
  27.             add player to {jl.jump3}
  28.         else if {jl.joueurs} is 4:
  29.             add player to {jl.jump4}
  30.         else if {jl.joueurs} is 5:
  31.             add player to {jl.jump5}
  32.            
  33.     if {jl.start.joueurs} is 3:
  34.         execute console command "/jl start"
  35.  
  36.        
  37.  
  38.        
  39.  
  40.  
  41. on quit:
  42.     if player is not op:
  43.         add -1 to {jl.joueurs}
  44.         add -1 to {jl.start.joueurs}
  45.        
  46.  
  47.        
  48.        
  49. #Admin
  50.  
  51. command /jl <text> [<text>]:
  52.     trigger:
  53.         if argument 1 is "set":
  54.             if argument 2 is "waitroom":
  55.                 set {jl.teleport.waitroom} to location of player
  56.                 send "{@logo}Waitroom faite!"
  57.                
  58.             if argument 2 is "jump1":
  59.                 set {jl.teleport.jump1} to location of player
  60.                 send "{@logo}Parcours 1 fait!"
  61.             if argument 2 is "jump2":
  62.                 set {jl.teleport.jump2} to location of player
  63.                 send "{@logo}Parcours 2 fait!"
  64.             if argument 2 is "jump3":
  65.                 set {jl.teleport.jump3} to location of player
  66.                 send "{@logo}Parcours 3 fait!"
  67.             if argument 2 is "jump4":
  68.                 set {jl.teleport.jump4} to location of player
  69.                 send "{@logo}Parcours 4 fait!"
  70.             if argument 2 is "jump5":
  71.                 set {jl.teleport.jump5} to location of player
  72.                 send "{@logo}Parcours 5 fait!"
  73.                
  74.         if argument 1 is "start":
  75.             set {_chrono} to 16
  76.             loop 15 times:
  77.                 add -1 to {_chrono}
  78.                 wait 15 ticks
  79.                 if {_chrono} is 15, 10, 5, 4, 3, 2 or 1:
  80.                     broadcast "{@logo}La partie commence dans &6%{_chrono}% &fsecondes!"
  81.                     wait 15 ticks
  82.             broadcast "{@logo}C'est parti!"
  83.             stop
  84.            
  85.             teleport {jl.jump1} to {jl.teleport.jump1}
  86.        
  87.         if argument 1 is "view":
  88.             send "{@logo}Il y a &6%{jl.joueurs}% &fdans la partie"
Advertisement
Add Comment
Please, Sign In to add comment