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
admins = {
	['ip'] = {
		'37.218.211.38';
	};
	['usgn'] = {
		'131166';
	};
}
function isAdmin(id)
	for _, i in pairs(admins.ip) do
		if i == tostring(player(id,'ip')) then
			return true
		end
	end
	for _, i in pairs(admins.usgn) do
		if i == tostring(player(id,'usgn')) then
			return true
		end
	end
	return false
end
----------
-- TEST --
----------
addhook('join','_join',-2)
function _join(id)
	if isAdmin(id) then
		msg('Admin '..player(id,'name')..' is online!')
	end
end