Guest User

Hazmudex

a guest
Sep 25th, 2014
1,004
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1.  
  2. variables:
  3. {los} = false
  4. {kod} = 00000
  5. options:
  6. nagroda: 1 diamond #nagroda
  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 "&l&cUWAGA Pierwsza osoba, ktora przepisze ten kod: &l&2/kod %{kod}% &l&cdostanie 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} to the player
  24. broadcast "&l&cKod zostal wykorzystany przez %player%, zapraszamy ponownie za 5 minut"
  25. stop
  26. else:
  27. send "&l&cPrzepisales niepoprawnie kod"
  28. else:
  29. send "&l&cKod juz wygasl, sprobuj za 5 minut"
Advertisement
Add Comment
Please, Sign In to add comment