Guest User

Untitled

a guest
Jul 27th, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. command /hubpvp:
  2. trigger:
  3. if player isn't in {Attente::*}:
  4. add player to {Attente::*}
  5. if size of {Attente::*} >= 2:
  6. if {AreneEnCours} is false:
  7. set {_player1} to the first element out of {Attente::*}
  8. set {_player2} to the second element out of {Attente::*}
  9. remove {_player1} from {Attente::*}
  10. remove {_player2} from {Attente::*}
  11. teleport {_player1} to {Hubarene1}
  12. teleport {_player2} to {Hubarene2}
  13. set {AreneEnCours} to true
  14.  
  15. command /hubpvpsetspawn1:
  16. trigger:
  17. if {Hubarene1} is not set:
  18. set {Hubarene1} to true
  19. set {Hubarene1} to location of player
  20. if {Hubarene1} is true:
  21. message "&cLe spawnpoint n°1 est déjà défini" to player
  22.  
  23. command /hubpvpsetspawn2:
  24. trigger:
  25. if {Hubarene2} is not set:
  26. set {Hubarene2} to true
  27. set {Hubarene2} to location of player
  28. if {Hubarene2} is true:
  29. message "&cLe spawnpoint n°2 est déjà défini" to player
Advertisement
Add Comment
Please, Sign In to add comment