Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

kama6012 Oct 12th, 2018 91 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. command /tdm [<text>]:
  2.     trigger:
  3.         if arg 1 is "join":
  4.             set {_num} to 1
  5.             loop {tdmplayer::*}:
  6.                 set {_num} to {_num} + 1
  7.                 if {_num} is 5:
  8.                     set {_num} to 1
  9.                 loop-value is player
  10.                 message "&7[TDM]すでに参加しています!" to player
  11.                 stop
  12.             if {tdmstart} is true:
  13.                 if {tdmtimer} is less than 30:
  14.                     message "&7[TDM]残り30秒を切っているため参加できません!"
  15.                     stop
  16.             set {tdmplayer::*} to player
  17.             if {_num} is 1 or 4:
  18.                 set {tdmred::*} to player
  19.                 set {tdmteam::%player%} to "red"
  20.             else if {_num} is 2 or 3:
  21.                 set {tdmgreen::*} to player
  22.                 set {tdmteam::%player%} to "green"
  23.             if {tdmstart} is true:
  24.                 if {tdmteam::%player%} is "red":
  25.                     teleport player to location at 1031.5, 4, 535.5
  26.                 if {tdmteam::%player%} is "green":
  27.                     teleport player to location at 1164.5, 4, 584.5
  28.                 message "&7[TDM]TDMに途中参加しました!"
  29.             else if {_num} is 2:
  30.                 message "&7[TDM]TDMに参加登録しました。まもなく始まります..."
  31.                 set {tdmstart} to true
  32.                 set {tdmtimer} to 300
  33.                 loop {tdmred::*}:
  34.                     teleport loop-value to location at 1031.5, 4, 535.5
  35.                 loop {tdmgreen::*}:
  36.                     teleport loop-value to location at 1164.5, 4, 584.5
  37.                 while {tdmtimer} is bigger than 0:
  38.                     loop {tdmplayer::*}:
  39.                         show an action bar from "&6MAP: [ふたつのようかん] &bINFO:&a☆KILL:[%{tdmkill.green}%] &4☆KILL:[%{tdmkill.red}%] 残り:[%{tdmtimer}%]秒" to loop-value
  40.                         wait 1 second
  41.                 set {tdmstart} to false
  42.                 delete {tdmtimer}
  43.                 if {tdmkill.green} is bigger than {tdmkill.red}:
  44.                     broadcast "&7[TDM]緑チームの勝利です! &a%{tdmkill.green}% - &4{tdmkill.red}"
  45.                     loop {tdmplayer::*}:
  46.                         {tdmteam::%loop-value%} is "green"
  47.                         set {money::%loop-value%} to {money::%loop-value%} + 10
  48.                 else if {tdmkill.red} is bigger than {tdmkill.green}:
  49.                     broadcast "&7[TDM]赤チームの勝利です! &a%{tdmkill.green}% &4- {tdmkill.red}"
  50.                     loop {tdmplayer::*}:
  51.                         {tdmteam::%loop-value%} is "red"
  52.                         set {money::%loop-value%} to {money::%loop-value%} + 10
  53.                 else:
  54.                     broadcast "&7[TDM]まさかまさかの引き分けです! &a%{tdmkill.green}% &4- {tdmkill.red}"
  55.                     loop {tdmplayer::*}:
  56.                         set {money::%loop-value%} to {money::%loop-value%} + 5
  57.                 delete {tdmplayer::*}
  58.                 delete {tdmteam::*}
  59.                 delete {tdmred::*}
  60.                 delete {tdmgreen::*}
  61.             else:
  62.                 message "&7[TDM]TDMに参加登録しました。しばらくお待ちください。"
  63.    
  64. every second:
  65.     set {tdmtimer} to {tdmtimer} - 1
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top