Advertisement
Kacperski89

x

Jul 8th, 2015
486
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. variables:
  2. {los} = false
  3. {kod} = 00000
  4. options:
  5. nagroda: 5 diamond #nagroda
  6. nagroda2: 8 diamond
  7. czas: 5 #czas co jaki ma być odnawiany kod w minutach
  8. every {@czas} minutes:
  9. set {los} to true
  10. set {_a} to random integer between 1 and 9
  11. set {_b} to random integer between 1 and 9
  12. set {_c} to random integer between 1 and 9
  13. set {_d} to random integer between 1 and 9
  14. set {_e} to random integer between 1 and 9
  15. set {kod} to "%{_a}%%{_b}%%{_c}%%{_d}%%{_e}%"
  16. wait 1 second
  17. broadcast "&a[ &9&lINFO&a ] &bPierwsza osoba, ktora przepisze ten kod: &2&l/kod %{kod}% &r&bdostanie nagrode!"
  18. command /kod [<text>]:
  19. trigger:
  20. if {los} is true:
  21. if arg is {kod}:
  22. set {los} to false
  23. give {@nagroda} or {@nagroda2} to the player
  24. broadcast "&a[ &9&lINFO&a ] &bJako pierwszy, kod przepisal &l%player%&r&b, nowy kod zostanie wygenerowany za 5 minut!"
  25. stop
  26. else:
  27. send "&b&lPrzepisales niepoprawnie kod"
  28. else:
  29. send "&c&lKod juz wygasl, sprobuj za 5 minut"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement