View difference between Paste ID: Pa0h2Vf7 and JTCsHuZa
SHOW: | | - or go back to the newest paste.
1
variables:
2
	{los} = false
3
	{kod} = 00000
4
options:
5
	nagroda: 5 diamond #nagroda
6
        nagroda2: 8 diamond
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 "&a[ &9&lINFO&a ] &bPierwsza osoba, ktora przepisze ten kod: &2&l/kod %{kod}% &r&bdostanie nagrode!"
18
command /kod [<text>]:
19
	trigger:
20
		if {los} is true:
21
			if arg is {kod}:
22-
				give {@nagroda} to the player
22+
23
				give {@nagroda} or {@nagroda2} to the player
24
				broadcast "&a[ &9&lINFO&a ] &bJako pierwszy, kod przepisal &l%player%&r&b, nowy kod zostanie wygenerowany za 5 minut!"
25
				stop
26
			else:
27
				send "&b&lPrzepisales niepoprawnie kod"
28
		else:
29
			send "&c&lKod juz wygasl, sprobuj za 5 minut"