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
if MM == nil then
	MM = {}
else
	return
end
MM.murderer = 1
addhook("say","MM.say")
function MM.say(id , txt)
	if( player(id, "health") == 0 ) then
		return 1
	end
	
	if( player(id, "team") == 0) then
		return 1
	end
end
parse("mp_wpndmg Deagle 100")
addhook("startround","MM.startround")
function MM.startround( mode )
	MM.murderer = math.random(1,#player(0,"table"))
	msg2(MM.murderer, "©255000000You are the murderer!")
end
addhook("kill","MM.kill")
function MM.kill(killer,victim,weapon,x,y)
	if(victim==MM.murderer) then
		msg("©255000000The murderer got killed!")
		print("killed")
		parse("restartround 5")
	elseif(killer~=MM.murderer) then
		parse("killplayer "..killer)
		msg(player(killer,"name").." was killed for killing "..player(MM.murderer,"name"))
	end
end
addhook("die","MM.die")
function MM.die(victim,killer,weapon,x,y)
	if(victim==MM.murderer) then
		msg("©255000000The murderer got killed!")
		print("killed")
		parse("restartround 5")
	end
end
addhook("hit","MM.hit")
function MM.hit(id,source,weapon,hpdmg,apdmg)
	if(source==MM.murderer) then
		parse("customkill 0 Murderer "..id)
	elseif(id~=MM.murderer) then
		parse("customkill 0 Noob: "..source)
	else
		parse("killplayer "..id)
	end
end
addhook("buy","MM.buy")
function MM.buy(id, wep)
	return 1
end
addhook("spawn","MM.spawn")
function MM.spawn( id )
	return "3"
end