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
83
mod1 = {1}
mod2 = {112392}
function totable(t,match)
local cmd = {}
if not match then match = "[^%s]+" end
for word in string.gmatch(t, match) do
table.insert(cmd, word)
end
return cmd
end
---
moda = {}
moda2 = {}
addhook("join","joina")
function joina(id)
for _, usgn in pairs(mod1) do
if player(id,"usgn") == usgn then
		moda[id] = 1
		end
		end
	for _, usgn in pairs(mod2) do
if player(id,"usgn") == usgn then
		moda2[id] = 1
		end
		end
		end
addhook("say","saya")
function saya(id,txt)
local p = totable(txt)
local cmd = tostring(p[1])
local pl = tonumber(p[2])
	if cmd == "!kick" then
	if moda[id] == 1 or moda2[id] == 1 then
		if pl ~= id then
			if pl ~= nil then
				if player(pl,"exists") then
					parse("kick " ..pl)
				else
					msg2(id,"Player no found")
				end
			else
				msg2(id,"Please enter ID")
			end
		else
			msg2(id,"You cant punish yourself")
		end
		end
	
	elseif cmd == "!banip" then
	if moda2[id] == 1 then
		if pl ~= id then
			if pl ~= nil then
				if player(pl,"exists") then
					parse("banip " ..pl)
				else
					msg2(id,"Player no found")
				end
			else
				msg2(id,"Please enter ID")
			end
		else
			msg2(id,"You cant punish yourself")
		end
	
	elseif cmd == "!banusgn" then
		if pl ~= id then
			if pl ~= nil then
				if player(pl,"exists") then
					parse("banusgn " ..pl)
				else
					msg2(id,"Player no found")
				end
			else
				msg2(id,"Please enter ID")
			end
		else
			msg2(id,"You cant punish yourself")
		end
	end
	end
	end