Guest User

JumpLeague2

a guest
Dec 16th, 2015
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.20 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.  
  8.  
  9. on join:
  10.     if player is op:
  11.         send "{@logo}Vous êtes opérateur, et donc en spectateur."
  12.        
  13.     else:
  14.         clear inventory of player
  15.         teleport player to {jl.teleport.waitroom}
  16.         add 1 to {jl.joueurs}
  17.         add 1 to {jl.start.joueurs}
  18.            
  19.     if {jl.start.joueurs} is 1:
  20.         execute console command "/jl start"
  21.  
  22.        
  23.  
  24.        
  25.  
  26.  
  27. on quit:
  28.     if player is not op:
  29.         remove 1 from {jl.joueurs}
  30.         remove 1 from {jl.start.joueurs}
  31.        
  32.  
  33.        
  34.        
  35. #Admin
  36.  
  37. command /jl <text> [<text>] [<text>]:
  38.     trigger:
  39.         if argument 1 is "set":
  40.             if argument 2 is "waitroom":
  41.                 set {jl.teleport.waitroom} to location of player
  42.                 send "{@logo}Waitroom faite!"
  43.                
  44.             if argument 2 is "jump":
  45.                 if argument 3 is "1":
  46.                     set {jump%arg-3%.spawn} to location of player
  47.                     send "{@logo}Jump 1 fait avec succès!"
  48.                 if argument 3 is "2":
  49.                     set {jump%arg-3%.spawn} to location of player
  50.                     send "{@logo}Jump 2 fait avec succès!"
  51.                 if argument 3 is "3":
  52.                     set {jump%arg-3%.spawn} to location of player
  53.                     send "{@logo}Jump 3 fait avec succès!"
  54.                 if argument 3 is "4":
  55.                     set {jump%arg-3%.spawn} to location of player
  56.                     send "{@logo}Jump 4 fait avec succès!"
  57.                 if argument 3 is "5":
  58.                     set {jump%arg-3%.spawn} to location of player
  59.                     send "{@logo}Jump 5 fait avec succès!"
  60.                
  61.         if argument 1 is "start":
  62.             set {_chrono} to 16
  63.             loop 15 times:
  64.                 add -1 to {_chrono}
  65.                 wait 15 ticks
  66.                 if {_chrono} is 15, 10, 5, 4, 3, 2 or 1:
  67.                     broadcast "{@logo}La partie commence dans &6%{_chrono}% &fsecondes!"
  68.                     wait 15 ticks
  69.             execute console command "jl start2"
  70.             send "commande faite"
  71.  
  72.         if argument 1 is "start2":
  73.             loop all players:
  74.                 if player is op:
  75.                     send "{@logo}Vous êtes opérateur, vous ne participez donc pas a la partie."
  76.                 else:
  77.                     set {_random} to random number between 1 and 5
  78.                     wait 5 ticks
  79.                     teleport loop-player to {jump%{_random}%.spawn}
  80.                     send "test"
  81.  
  82.                    
  83.         if argument 1 is "view":
  84.             send "{@logo}Il y a &6%{jl.joueurs}% &f joueurs dans la partie"
  85.            
  86.         if argument 1 is "reset":
  87.             set {jl.joueurs} to 0
  88.             set {jl.start.joueurs} to 0
Advertisement
Add Comment
Please, Sign In to add comment