Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Autor: xxx
- on script LOAD:
- send "&8[&5aLosowanie&8]&6Skrypt by &8andrzex &2 WLACZONY!" to the console
- variables:
- {los} = false
- {kod} = 00000
- options:
- nagroda: 4 diamond
- czas: 10
- every {@czas} minutes:
- set {los} to true
- set {_a} to random integer between 1 and 10
- set {_b} to random integer between 1 and 20
- set {_c} to random integer between 1 and 30
- set {_d} to random integer between 1 and 40
- set {_e} to random integer between 1 and 50
- set {kod} to "%{_a}%%{_b}%%{_c}%%{_d}%%{_e}%"
- wait 1 second
- broadcast "&4[&6Losowanie&4]&3Pierwsza osoba ktora przepisze kod: &2/kod %{kod}% &3dostanie nagrode!"
- command /kod [<text>]:
- trigger:
- if {los} is true:
- if arg is {kod}:
- set {los} to false
- give {@nagroda} to the player
- broadcast "&4[&6Losowanie&4]&3Gratulacje dla gracza &2%player% &3poprawnie przepisal kod i dostal &2NAGRODE!"
- stop
- else:
- send "&c&lPrzepisales niepoprawnie kod"
- else:
- send "&c&lKod juz wygasl, sprobuj za 8 minut"
Advertisement
Add Comment
Please, Sign In to add comment