variables: {los} = false {kod} = 00000 options: nagroda: 5 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 "&a[ &9&lINFO&a ] &bPierwsza osoba, ktora przepisze ten kod: &2&l/kod %{kod}% &r&bdostanie nagrode!" command /kod []: trigger: if {los} is true: if arg is {kod}: set {los} to false give {@nagroda} to the player broadcast "&a[ &9&lINFO&a ] &bJako pierwszy, kod przepisal &l%player%&r&b, nowy kod zostanie wygenerowany za 5 minut!" stop else: send "&b&lPrzepisales niepoprawnie kod" else: send "&c&lKod juz wygasl, sprobuj za 5 minut"