View difference between Paste ID: zBcf9Q3j and yiyNNexx
SHOW: | | - or go back to the newest paste.
1
options:
2
	NAZWA: &6Pistolet
3
	zycia: 200	#2 = 1 zycie
4
5
on rightclick with a diamond:
6-
	if {czas.%player} is false:
6+
	if {czas.%player%} is false:
7
		shoot snowball speed 3
8
		set {czas.%player%} to true
9
		set {czas.c.%player%} to 30
10
	else:
11
		send "&6Musisz jeszcze odczekac {czas.c.%player%}/30"
12
13
on shoot:
14
	if shooter's tool is a diamond named "{@NAZWA}":
15
		set {weapon.%projectile%} to diamond
16
17
on damage:
18
	projectile is a snowball
19
	if {weapon.%projectile%} is diamond:
20
		set damage to {@zycia}
21
22
every second:
23
	if {czas.%player%} is true:
24
		add -1 to {czas.c.%player%}
25
	if {czas.c.%player%} is 0 or -1:
26
		set {czas.%player%} to false
27
		send "&6Znow mozesz uzyc pistoletu!" to player