Advertisement
lNockl

Untitled

Jun 6th, 2016
468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. command /buildbattle [<text>] [<number>]:
  2. trigger:
  3. if arg 1 is "setlobby":
  4. set {main.lobby} to location of player
  5. send "&eMain Lobby Succesfull set"
  6. if arg 1 is "setspawn":
  7. if arg number is set:
  8. set {spawn.%arg-number%} to location of player
  9. send "&eSpawn %arg-number% succesfull set to %location of player%"
  10. else:
  11. send "&cYou must add number spawn"
  12. if arg 1 is "join":
  13. set {playing.%player%} to true
  14. send "&eYou Joined the game"
  15. teleport player to {main.lobby}
  16. wait 10 seconds
  17. set {sec.start} to 10
  18. loop 10 times:
  19. send "&eStarting game in %{sec.start}% seconds"
  20. remove 1 from {sec.time}
  21. wait 1 second
  22. set {_loc} to 0
  23. loop 8 times: #need 8 spawns set
  24. teleport player to {spawn.%{_loc}%}
  25. add 1 to {_loc}
  26. send "&eLGame has Started"
  27. #You CODE HERE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement