is it better to use the rcon or just have no rcon but use lua?
Forum




Use rcon or not?
8 replies



is it better to use the rcon or just have no rcon but use lua?
Admin/mod comment
how the fuck is that related to the topic? read the rules!!! /DC1
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
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
parse("sv_rcon")
adminList = {31040}
addhook('say','adminCommand',-1)
function adminCommand(id,words)
if isAdmin(id) and words:sub(1,1) =='!' then
local command = words:lower():sub(2,2)
if words:sub(3,3) ~= ' ' and #words ~= 2 then return end
print(player(id,'name')..' used a command:'..words)
if command =='.' then
local delay = tonumber(words:sub(3)) or 0
parse(string.sub(words,3))
return 1
end
end
end
function isAdmin(id)
for _, usgn in ipairs(adminList) do
if player(id,'usgn') == usgn then
return true
end
end
return false
end
addhook("minute","minute")
function minute()
msg("This Server use AntiRconHack by Quit.")
end

Antirconhack v.0.1 By Quit
Hahaha.. You make me lol =3
You've never made anything yourself.

My Opinion: Use a admin script instead
However, if you want to have a server with multiple admins, it's more safe to have a lua admin script with restricted access to the server commands for the subadmins.
The risk in using lua scripts is that some lua scripts are not orientated towards security. For example, some colour scripts ( give you another color when talk) accept @C at the end and allow spamming to the center of the screen.



