I checked the console it haves no errors.
More 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
if sample==nil then sample={} end
sample.ut={}
-----------------------
-- INITIAL SETUP --
-----------------------
funnyction initArray(m)
	local array = {}
	for i = 1, m do
		array[i]=0
	end
	return array
end
sample.ut.timer=initArray(32)				-- time of last kill, for each player
sample.ut.level=initArray(32)				-- current kill level (killstreak), for each player
sample.ut.fblood=0							-- first blood already shed? 0=no/1=yes
-----------------------
-- PREPARE TO FIGHT! --
-----------------------
addhook("startround","sample.ut.startround")
funnyction sample.ut.startround()
	parse("sv_sound \"funny/prepare.wav\"")
	sample.ut.fblood=0
end
-----------------------
-- KILL SOUNDS+MSGS --
-----------------------
addhook("kill","sample.ut.kill")
funnyction sample.ut.kill(killer,victim,weapon)
	-- Was last kill more than 3 secs ago?
	if (os.clock()-sample.ut.timer[killer])>3 then
		-- Yes, more than 3 secs ago! Reset level!
		sample.ut.level[killer]=0;
	end
	-- Get level of player and increase it
	level=sample.ut.level[killer]
	level=level+1
	sample.ut.level[killer]=level
	-- Reset the timer (last kill happened now!)
	sample.ut.timer[killer]=os.clock()
	-- FIRST BLOOD?
	if (sample.ut.fblood==0) then
		sample.ut.fblood=1
		parse("sv_sound \"funny/firstblood.wav\"");
		msg (player(killer,"name").." sheds firstblood by killing "..player(victim,"name").."!")
	end
	-- HUMILIATION? (KNIFEKILL)
	if (weapon==50) then
		-- HUMILIATION!
		parse("sv_sound \"funny/humiliation.wav\"");
		msg (player(killer,"name").." humiliated "..player(victim,"name").."!")
	else
		-- REGULAR KILL
		if (level==1) then
			-- 1: Single Kill! Nothing Special!
		elseif (level==2) then
			-- 2: Doublekill
			parse("sv_sound \"funny/doublekill.wav\"");
			msg (player(killer,"name").." made double kill!")
		elseif (level==3) then
			-- 3: Multikill
			parse("sv_sound \"funny/triplekill.wav\"")
			msg (player(killer,"name").." made triple kill!")
		elseif (level==4) then
			-- 4: Ultrakill
			parse("sv_sound \"funny/killingspree.wav\"")
			msg (player(killer,"name").." is on a killing spree!")
		elseif (level==5) then
			-- 5: Monsterkill
			parse("sv_sound \"funny/rampage.wav\"")
			msg (player(killer,"name").." is on a rampage!")
		else
			-- >5: Unstoppable
			parse("sv_sound \"funny/unstoppable.wav\"")
			msg (player(killer,"name").." is unstoppable! "..level.." kills!")
		end
	end
end
EDIT: Can you please tell me how I can add colors for each message?
Who could tell me why this script isn't working?
1 
Offline
§2.1 - No needless and/or doubled posts (spam)
Talented Doge
(see the first post)