Shadax

Los

Jan 4th, 2014
947
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. variables:
  2. {los} = false
  3. {kod} = 00000
  4. options:
  5. nagroda: 1 diamond #nagroda
  6. czas: 5 #czas co jaki ma być odnawiany kod w minutach
  7. every {@czas} minutes:
  8. set {los} to true
  9. set {_a} to random integer between 1 and 9
  10. set {_b} to random integer between 1 and 9
  11. set {_c} to random integer between 1 and 9
  12. set {_d} to random integer between 1 and 9
  13. set {_e} to random integer between 1 and 9
  14. set {kod} to "%{_a}%%{_b}%%{_c}%%{_d}%%{_e}%"
  15. wait 1 second
  16. broadcast "&l&cUWAGA Pierwsza osoba, ktora przepisze ten kod: &l&2/kod %{kod}% &l&cdostanie nagrode!"
  17. command /kod [<text>]:
  18. trigger:
  19. if {los} is true:
  20. if arg is {kod}:
  21. set {los} to false
  22. give {@nagroda} to the player
  23. broadcast "&l&cKod zostal wykorzystany przez %player%, zapraszamy ponownie za 5 minut"
  24. stop
  25. else:
  26. send "&l&cPrzepisales niepoprawnie kod"
  27. else:
  28. send "&l&cKod juz wygasl, sprobuj za 5 minut"
Advertisement
Add Comment
Please, Sign In to add comment