Guest User

Ziolek

a guest
Mar 13th, 2015
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. #Autor: xxx
  2. on script LOAD:
  3. send "&8[&5aLosowanie&8]&6Skrypt by &8andrzex &2 WLACZONY!" to the console
  4. variables:
  5. {los} = false
  6. {kod} = 00000
  7. options:
  8. nagroda: 4 diamond
  9. czas: 10
  10. every {@czas} minutes:
  11. set {los} to true
  12. set {_a} to random integer between 1 and 10
  13. set {_b} to random integer between 1 and 20
  14. set {_c} to random integer between 1 and 30
  15. set {_d} to random integer between 1 and 40
  16. set {_e} to random integer between 1 and 50
  17. set {kod} to "%{_a}%%{_b}%%{_c}%%{_d}%%{_e}%"
  18. wait 1 second
  19. broadcast "&4[&6Losowanie&4]&3Pierwsza osoba ktora przepisze kod: &2/kod %{kod}% &3dostanie nagrode!"
  20. command /kod [<text>]:
  21. trigger:
  22. if {los} is true:
  23. if arg is {kod}:
  24. set {los} to false
  25. give {@nagroda} to the player
  26. broadcast "&4[&6Losowanie&4]&3Gratulacje dla gracza &2%player% &3poprawnie przepisal kod i dostal &2NAGRODE!"
  27. stop
  28. else:
  29. send "&c&lPrzepisales niepoprawnie kod"
  30. else:
  31. send "&c&lKod juz wygasl, sprobuj za 8 minut"
Advertisement
Add Comment
Please, Sign In to add comment