instagramfortnite

Untitled

Dec 18th, 2020
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. command /play [<text>]:
  2. executable by: players
  3. trigger:
  4. if arg-1 is set:
  5. if arg-1 is "solo_normal" or "solo_insane":
  6. if size of {arena.amounts} is not 0:
  7. send "&aLooking for a game!"
  8. wait 1 second
  9. if arg-1 is "solo_normal":
  10. loop {sw.arena::*}:
  11. if {sw.arena.%loop-value%.mode} is "SOLO_NORMAL":
  12. if {sw.arena.event.%loop-value%} is "{@Waiting}" or "{@Starting}":
  13. if {sw.arena.%loop-value%.playing} is between 0 and {maxplayerssolo}:
  14. if {sw.playing.%player%} is false:
  15. send "&aFound a server running &bSOLO:NORMAL!&a Sending you to %loop-value%!"
  16. set {sw.playing.%player%} to true
  17. add 1 to {sw.arena.%loop-value%.playing}
  18. add player to {sw.arena.%loop-value%.players.alive::*}
  19. set {sw.player.%loop-value%.number} to "%player%"
  20. teleport player to {sw.arena.%loop-value%.spawn.num.%{sw.arena.%loop-value%.cage.count}%}
  21. stop
  22. else:
  23. make player execute "/leave"
  24. wait 0.1 seconds
  25. make player execute "/play solo_normal"
  26. stop
  27. else:
  28. send "&aThere are no availible arenas at the moment!"
  29. stop
  30. else:
  31. send "{@gameactive}"
  32. stop
Advertisement
Add Comment
Please, Sign In to add comment