taiyaki23

Untitled

Jul 1st, 2020
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. command /yuki <text>:
  2. permission: sk.op
  3. trigger:
  4. if arg-1 is "team":
  5. set {_redpl} to 0
  6. set {_bluepl} to 0
  7. set {_yukipl} to 0
  8. set {_lnum} to 0
  9. delete {teamred::*}
  10. delete {teamblue::*}
  11. delete {teamwhite::*}
  12. loop all players:
  13. if {yukisannka.%loop-player%} is 1:
  14. add loop-player to {teamwhite::*}
  15. add 1 to {_yukipl}
  16. loop {_yukipl} times:
  17. add 1 to {_yukipl2}
  18. set {_random} to a random player out of {teamwhite::*}
  19. remove {_random} from {teamwhite::*}
  20. if {_yukipl2} is 1:
  21. add {_random} to {teamred::*}
  22. set {team.%{_random}%} to red
  23. set {_redpl} to {_redpl} + 1
  24. else if {_yukipl2} is 2:
  25. add {_random} to {teamblue::*}
  26. set {team.%{_random}%} to blue
  27. remove 2 from {_yukipl2}
  28. set {_bluepl} to {_bluepl} + 1
  29. message "<red>%{teamred::*}%<white>,<blue>%{teamblue::*}%" to player
  30. if arg-1 is "start":
  31. set {_shiai} to "start"
  32. set {_shiaizikann} to 300
  33. loop 300 times:
  34. set {_shiaizikann} to {_shiaizikann} - 1
  35. if {_shiai} is "stop":
  36. stop loop
  37.  
  38.  
  39. command join:
  40. trigger:
  41. message "&aゲーム参加しました" to player
  42. set {yukisannka.%player%} to 1
Add Comment
Please, Sign In to add comment