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
function Array(size,value)
local array = {}
for i = 1, size do
array[i]=value
end
return array
end
muted = Array(32,0)
Admin = {xxxxx} -- Write your usgn here !
addhook("spawn","admin_spawn")
function admin_spawn(id)
	for i=1,#Admin do
		if (player(id,"usgn")==Admin[i]) then
			parse("equip "..id.." 83")
		end
	end
end
addhook("say","adm_say")
function adm_say(id,txt)
	if txt == "!rs" or txt == "!resetscore" then
		parse("setscore "..id.." 0")
		parse("setdeaths "..id.." 0")
		msg2(id, string.char(169).."255255255Score Reseted!@C")
		return 1
	end
	for i=1,#Admin do
		if (player(id,"usgn")==Admin[i]) then
			if string.sub(txt,1,5) == "!mute" then
			local ida = tonumber(string.sub(txt,7,8))
				muted[ida] = 1
				msg2(id,string.char(169).."000255000Player Muted : "..player(ida,"name"))
				msg2(ida,string.char(169).."255000000You have been muted by Admin.")
				return 1
		elseif string.sub(txt,1,7) == "!unmute" then
		local ida = tonumber(string.sub(txt,9,10))
				muted[ida] = 0
				msg2(id,string.char(169).."000255000Player Unmuted : "..player(ida,"name"))
				msg2(id,string.char(169).."255000000Admin unmuted you!")
				return 1
		elseif txt:sub(1,5) == "!kick" then
		local pl = txt:sub(7,8)
				parse("kick "..pl)
				return 1
		elseif txt:sub(1,4) == "!ban" then
		local bpl = txt:sub(6,7)
				parse("banip "..bpl)
				return 1
		elseif txt:sub(1,5) == "!kill" then
		local pl = txt:sub(7,8)
				parse("killplayer "..pl)
				return 1
			end
				if muted[id] == 1 then
					msg2(id,string.char(169).."255000000You have been muted by Admin!.")
					return 1
			end
		end
	end
end
addhook("sayteam","eng")
function eng(id,txt)
if muted[id] == 1 then
msg2(id,string.char(169).."255000000You have been muted by Admin.")
return 1
end
end
addhook("join","ea")
function ea(id)
muted[id] = 0
end