using Lua:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Allow_IP = {}; --Put authorized IP's(remote rcon check)
Allow_USGN = {}; --Put authorized USGN's(normalCheck)
function auth_rcon ( c, p, ip )
if (p~=0) then
	if Allow_USGN[player(p,"usgn")]==true then
	 msg2(p,"You aren't authorized for rcon.");
	return 1
	else
	return 0
	end
elseif (p==0) then
	if Allow_IP[ip]==true then
	return 0
	else
	return 1
	end
end
end
addhook('rcon','auth_rcon');
Basically, add the USGNs and IPs that you want to allow to use it (remember to allow 127.0.0.1 and your static ip if you want yourself to be able to use rcon in a dedi svr.)
Bannned from own server


Offline