[CODE]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
local G_Ban = {}
local url = "https://www.dropbox.com/s/uvosm5xphbmyrhb/gban.txt?dl=0"
local function reset()
http.Fetch(url, function(html)
G_Ban = string.Explode("\n",html)
end)
end
reset()
timer.Create("gban_reset",3600,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) [/CODE]
If the fixed point is incorrect, please ask
There is a steam unique number to the address on the 14th line has devised a unique number that is blocking commands pops up an error when you use the gban_list
C: \ Program Files (x86) \ Steam \ steamapps \ common \ GarrysMod \ garrysmod \ addons \ gban \ lua \ autorun \ server
The path here
You should watch out for your thread titling, I recently saw somebody getting banned for it.
Sorry, you need to Log In to post a reply to this thread.