Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {los} = false
- {kod} = 00000
- options:
- nagroda: 1 diamond #nagroda
- czas: 5 #czas co jaki ma być odnawiany kod w minutach
- every {@czas} minutes:
- set {los} to true
- set {_a} to random integer between 1 and 9
- set {_b} to random integer between 1 and 9
- set {_c} to random integer between 1 and 9
- set {_d} to random integer between 1 and 9
- set {_e} to random integer between 1 and 9
- set {kod} to "%{_a}%%{_b}%%{_c}%%{_d}%%{_e}%"
- wait 1 second
- broadcast "&l&cUWAGA Pierwsza osoba, ktora przepisze ten kod: &l&2/kod %{kod}% &l&cdostanie nagrode!"
- command /kod [<text>]:
- trigger:
- if {los} is true:
- if arg is {kod}:
- set {los} to false
- give {@nagroda} to the player
- broadcast "&l&cKod zostal wykorzystany przez %player%, zapraszamy ponownie za 5 minut"
- stop
- else:
- send "&l&cPrzepisales niepoprawnie kod"
- else:
- send "&l&cKod juz wygasl, sprobuj za 5 minut"
Advertisement
Add Comment
Please, Sign In to add comment