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
84
85
86
function Array(size,value)
	local array = {}
	for i = 1, size do
		array[i]=value
	end
	return array
end
function table.find(table,value)
for i,v in ipairs(table) do
if v == value then
return true
end
end
end
adm_ip = {"127.0.0.1","0.0.0.0"}
adm_usgn = {"44711"}
rp_build_m = Array(32,1)
tsb = Array(32,0)
player_have_pos = Array(32,false)
tele_x = Array(32,0)
tele_y = Array(32,0)
arrest_x = Array(32,0)
arrest_y = Array(32,0)
rp_arrest = Array(32,false)
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
addhook("join","admjoin")
function admteam(id,team)
usgn = player(id,"usgn")
ip = player(id,"ip")
if table.find(vip_ip,ip) or table.find(vip_usgn,usgn)then
				adm[id] = true
			end
		end
	end
	if cmd ==[[arrest]] then
		if adm[id]==true then
			local pl = tonumber(p[2])
			if pl ~= nil then
				if player(pl,[[exists]]) then
					rp_arrest[pl]=true
				end
			end
				
				
	if cmd ==[[free]] then
		if adm[id]==true then
			local pl = tonumber(p[2])
			if pl ~= nil then
				if player(pl,[[exists]]) then
					rp_arrest[pl]=false
				end
			end
			else
			
	if cmd ==[[bring]] then
		if adm[id]==true then
			local pl = tonumber(p[2])
			if pl ~= nil then
				if player(pl,[[exists]]) then
					parse([[setpos ]]..pl..[[ ]]..player(id,[[x]])..[[ ]]..player(id,[[y]]))
				else
					rp_msg2(id,[[255000000]],[[This player does not exist!]])
				end
			end
	if cmd == [[goto]] then
		if adm[id]==true then
			local pl = tonumber(p[2])
			if pl ~= nil then
				if player(pl,[[exists]]) then
					parse([[setpos ]]..id..[[ ]]..player(pl,[[x]])..[[ ]]..player(pl,[[y]]))
				else
					rp_msg2(id,[[255000000]],[[This player does not exist!]])
				end
			end