Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /yuki <text>:
- permission: sk.op
- trigger:
- if arg-1 is "team":
- set {_redpl} to 0
- set {_bluepl} to 0
- set {_yukipl} to 0
- set {_lnum} to 0
- delete {teamred::*}
- delete {teamblue::*}
- delete {teamwhite::*}
- loop all players:
- if {yukisannka.%loop-player%} is 1:
- add loop-player to {teamwhite::*}
- add 1 to {_yukipl}
- loop {_yukipl} times:
- add 1 to {_yukipl2}
- set {_random} to a random player out of {teamwhite::*}
- remove {_random} from {teamwhite::*}
- if {_yukipl2} is 1:
- add {_random} to {teamred::*}
- set {team.%{_random}%} to red
- set {_redpl} to {_redpl} + 1
- else if {_yukipl2} is 2:
- add {_random} to {teamblue::*}
- set {team.%{_random}%} to blue
- remove 2 from {_yukipl2}
- set {_bluepl} to {_bluepl} + 1
- message "<red>%{teamred::*}%<white>,<blue>%{teamblue::*}%" to player
- if arg-1 is "start":
- set {_shiai} to "start"
- set {_shiaizikann} to 300
- loop 300 times:
- set {_shiaizikann} to {_shiaizikann} - 1
- if {_shiai} is "stop":
- stop loop
- command join:
- trigger:
- message "&aゲーム参加しました" to player
- set {yukisannka.%player%} to 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement