Facebook
From Red Curlew, 1 Year ago, written in Plain Text.
This paste is a reply to Re: AntyBot from xBG - view diff
Embed
Download Paste or View Raw
Hits: 171
  1. dodaj tak :
  2.  
  3. Wybieranie itemy z gui
  4.  
  5. MASZ KOD:
  6.  
  7. on inventory close:
  8.     wait 30 tick
  9.     if {bot::%player%} is true:
  10.         kick player due to "&a&lKliknij na zielona welne aby udowodnic ze nie jestes botem"
  11. on join:
  12.     wait 40 tick
  13.     set {bot::%player%} to true
  14.     set {menu} to a random integer between 0 and 8
  15.     open chest with 1 rows named "&cAntyBot" to player        
  16.     wait 1 tick
  17.     loop 9 times:
  18.         format slot (loop-number - 1) of player with red wool named "&4&lJESTEM BOTEM" to close then run [run player cmd "kick &5&l%player% &c&lJestes botem!" as op]
  19.     format slot {menu} of player with 1 of light green wool named "&6NIE JESTEM BOTEM" to close then run [run player cmd "/anty-bot" as op]  
  20.     set {_time::%player%} to 11  
  21.     loop 10 times:
  22.         wait 1 second
  23.         if {bot::%player%} is false:
  24.             stop
  25.         if {bot::%player%} is true:
  26.             set {_time::%player%} to {_time::%player%}-1
  27.         {_time::%player%} is 0:
  28.             kick player due to "&a&lKliknij na zielona welne aby udowodnic ze nie jestes botem"
  29.             stop
  30.         else:
  31.             send " &f&lPozostalo czasu %colored random color% &l%{_time::%player%}%"
  32.     if {bot::%player%} is true:
  33.         kick player due to "&a&lKliknij na zielona welne aby udowodnic ze nie jestes botem"
  34.         stop    
  35. command /anty-bot:
  36.     trigger:
  37.         if {bot::%player%} is true:
  38.             set {bot::%player%} to false
  39.             send "&aWeryfikacja powiodla sie. Milej gry"
  40.         else:
  41.             send "&c&lWeryfikacja byla juz przeprowadzona"
  42.             stop
  43.  
  44.