View difference between Paste ID: 6TU3KLCi and 9BuF5Vp8
SHOW: | | - or go back to the newest paste.
1
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
2
 		Name: DeathHead             
3
 		Version: 1.0                
4
 		Skript: 2.0.2      
5
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
6
 
7
╔════════════════════════════════════════
8-
║  Licencja DeathHead by FejminTV             ║
8+
║  DeathHead by FejminTV             ║
9
║  Zezwalam na:                               ║
10
║ - edytowanie komunikatow                    ║
11-
║ Nie zezwalam na:                            ║
11+
║ Nie zezwalam na:                            ║              
12-
║ - Uznwanie sie autorem                      ║
12+
13
║ - Zarabianie na skrypcie                    ║
14-
║ - Robienie z niego jakich kolwiek reklam    ║
14+
15
╚════════════════════════════════════════
16
             
17
variables:
18
	{head.status} = 1
19
options:
20
	szansa: 100
21
	szansavip: 100
22
	tag: &8[&cHead&8]
23
	permission: &4Nie masz uprawnien by uzywac tej komendy!
24
on death:
25
	{head.status} is 1:
26
		if player has permission "head":
27
			attacker is player
28
			if chance of {@szansa}%:
29
				give the victim's skull to attacker
30
				send "&{@tag} 7Za zabicie &cgracza &7dostajesz jego glowe" to attacker
31
		else:
32
			send "{@tag} {@permission}"
33
			stop
34
		if player has permission "head.vip":
35
			attacker is player
36
			if chance of {@szansavip}%:
37
				give the victim's skull to attacker
38
				send "&{@tag} 7Za zabicie &cgracza &7dostajesz jego glowe" to attacker
39
		else:
40
			send "{@tag} {@permission}"
41
			stop
42
	{head.status} is 0:
43
		send "&{@tag} &7Drop glow z graczy jest &4OFF"
44
45
command /heads [<text>]:
46
	trigger:
47
		if player has permission "head":
48
			if arg 1 is "on":
49
				set {head.status} to 1
50
				send "{@tag} &7Glowy wlaczone"
51
				stop
52
			if arg 1 is "off":
53
				set {head.status} to 0
54
				send "{@tag} &7Glowy wylaczone"
55
				stop
56
			else:
57
				send "{@tag} &c/heads <&fon/off&c>"
58
				stop
59
		else:
60
			send "{@tag} {@permission}"
61
			stop
62
63
command /head [<player>]:
64
	trigger:
65
		{head.status} is 1:
66
			if player has permission "head.give":
67
				give skull of arg to player
68
				send "{@tag} &7Dostales glowe &c%arg player%"
69
				stop
70
			else:
71
				send "{@tag} {@permission}"
72
				stop
73
		else:
74
			send "{@tag} &7Glowy sa &cOFF"
75
			stop