Global-Ban mod

local function SteamID64(str)
if str:find(“STEAM_”) then
local X,Y,Z
for X,Y,Z in string.gmatch(str,“STEAM_(%d+.?%d*):(%d+.?%d*):(%d+.?%d*)”) do
str = (Z*2) + 76561197960265728 + Y
end
return str
else
return “UNKNOWN”
end
end

G_Ban = {}
local url = “https://www.dropbox.com/s/uvosm5xphbmyrhb/GBAN.txt
local function reset()
http.Fetch(url, function(html)
print(“Reset Global Ban List”)
G_Ban = string.Explode("
",html)
for k,v in pairs(player.GetAll()) do
for _,ban in pairs(G_Ban) do
if ban == v:SteamID() then
v:Kick(“Global Ban”)
end
end
end
end)
end

timer.Create(“gban_reset”,1800,0,reset)

concommand.Add(“gban_list”, function(ply, _, args)
MsgC(Color(255,0,0),"Global Ban List = ") table.print(G_Ban)
end)

hook.Add(“CheckPassword”, “G_Ban”, function(sid, ip, _, pass, name)
for k,v in pairs(G_Ban) do
if v == sid or v == ip or tonumber(sid) == SteamID64(v) then
Msg"[Join] Global Ban " print(name,ip,sid,v)
return false,“Global Ban System”
end
end
end)

timer.Simple(1,reset)

Lua was not even created an add-garry’s mod application

what

ok sorry but this whole thing feels a bit fishy

the thing is with global banlists is that there’s no evidence that any of those steamIDs did anything wrong
and it could simply be the addon maker holding a grudge (there’s not even any explanation to why those steamIDs are there)

btw use code/lua tags