Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /team <text> <number> <number>:
- permission:admin
- trigger:
- if arg-1 is "set":
- add arg-3 to {pvpb}
- add arg-2 to {pvpr}
- loop arg-3 times:
- add all players to {all.players::*}
- set {red::*} to random player out of {all.players::*}
- remove {red::*} from {all.players::*}
- send "あなたは赤チームです" to {red::*}
- loop arg-2 times:
- set {blue::*} to random player out of {all.players::*}
- remove {blue::*} from {all.players::*}
- send "あなたは青チームです" to {blue::*}
- loop all players:
- add 1 to {player.count}
- add {player.count}/2 to {player/2}
- if arg-1 is "remove":
- loop all players:
- delete {red::*}
- delete {blue::*}
- set {player.count} to 0
- set {player/2} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement