Guest User

Untitled

a guest
Jun 24th, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. command /losuj2:
  2. trigger:
  3. player has permission "admin":
  4. loop 4 times:
  5. set {konkurs.znak%loop-number%} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9
  6. set {konkurs.kod1} to "%{konkurs.znak1}%%{konkurs.znak2}%"
  7. set {konkurs.kod2} to "%{konkurs.znak3}%%{konkurs.znak4}%"
  8. wait 10 ticks
  9. set {konkurs.kod3} to {konkurs.kod1}+{konkurs.kod2}
  10. set {konkurs2} to 1
  11. loop all players:
  12. broadcast "&7Kod to &e%{konkurs.kod1}%+%{konkurs.kod2}%&7! Aby go wprowadzic wpisz kod na chacie!"
  13. on chat:
  14. if {konkurs2} is 1:
  15. if message contains "%{konkurs.kod3}%":
  16. set {konkurs2} to 0
  17. broadcast "&7Gracz %player% wpisal jako pierwszy kod &e%{konkurs.kod3}% &7i wygral diament!"
  18. give 1 diamond to player
Advertisement
Add Comment
Please, Sign In to add comment