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
function string.split(text,b)
local cmd = {}
if b then
b = b
else
b = "%s"
end
b = "[^"..b.."]+"
for o in string.gmatch(text,b) do
table.insert(cmd,o)
end
return cmd
end
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("parse","test")
function test(cmd)
	_msg=totable(cmd)
	_t1=tostring(_msg[1])
	if (_t1=="stat") then
		_t2=tonumber(_msg[2])
		msg2(_t2,"©255255255IP: "..player(_t2,"ip").."")
	end
end