Advertisement
einsteinK

SBLX: New Synchronised Ban List

Jan 3rd, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- After I made the first SBL ever (that is already copied a lot of times)
  2. -- I now present SBLX, SBL using HttpService and pastebin to ban people
  3. -- © Copyright einsteinK Studios - Free to use, forbidden to copy
  4.  
  5. local http = game:FindService("HttpService")
  6. if not http then error("No HttpService") end
  7. http:GetAsync("http://pastebin.com")
  8. SBLX = { Banned = {} }
  9.  
  10. function SBLX:Remove(plr,r)
  11.     local gui = Instance.new("ScreenGui",plr:FindFirstChild("PlayerGui"))
  12.     gui.Name = "SBLX_Reason_Gui" local f = Instance.new("Frame",gui)
  13.     f.Size = UDim2.new(0.5,0,0.25,0) f.Position = UDim2.new(0.25,0,0.375,0)
  14.     f.Style = "RobloxRound" local l = Instance.new("TextLabel",f)
  15.     l.Size = UDim2.new(1,0,1,0) l.ZIndex = 2 l.TextWrapped = true
  16.     l.BackgroundTransparency = 1 l.TextStrokeColor3 = Color3.new(1)
  17.     l.TextColor3 = Color3.new() l.TextStrokeTransparency = 0
  18.     l.Text = "You're banned by SBLX\nReason: "..(r or "Unknown")
  19.     l.Font = "SourceSansBold" l.FontSize = "Size48" l.Name = "Reason"
  20.     l.TextYAlignment = "Top" local i = l:clone() i.Parent = f
  21.     i.TextYAlignment = "Bottom" i.FontSize = "Size18" i.Name = "Info"
  22.     i.Text = [[SBLX: Synchronised Ban List - Generation X -  by einsteinK
  23.     A project by einsteinK to ban a nood immediatly from a lot of places.
  24.     Got a noob to report? Message einsteinK with his name AND the reason.
  25.     (I probably ask some proof, as I only ban exploiters, big noobs, ...)]]
  26.     wait(5) print(gui.Parent) gui:Destroy() plr:Kick() plr:Destroy()
  27.     print("Kicked player banned by SBLX: "..tostring(plr).." ("..plr.userId..")")
  28. end
  29.  
  30. function SBLX:Joined(plr)
  31.     for k,v in pairs(self.Banned) do
  32.         if k:lower() == tostring(plr):lower() then
  33.             coroutine.wrap(self.Remove)(self,plr,v)
  34.         end
  35.     end
  36. end
  37.  
  38. function SBLX:JoinAll()
  39.     for k,v in pairs(game:GetService("Players"):GetPlayers()) do
  40.         ypcall(self.Joined,self,v)
  41.     end
  42. end SBLX:JoinAll()
  43.  
  44. function SBLX:Download()
  45.     local str = http:GetAsync("http://pastebin.com/raw.php?i=P6M8i1Xg")
  46.     if not str:find("-- END OF BANLIST --") then return end
  47.     self.Banned = {}
  48.     for k,v in str:gmatch("(%S+): (.-)\n") do
  49.         self.Banned[k] = v
  50.     end self:JoinAll()
  51. end
  52. if NewCommand then
  53.     NewCommand("SBLX",function(plr,msg) ClearTablets(plr)
  54.         if not SBLX or not SBLX.Banned then return Inform(plr,"SBLX not installed!",5) end
  55.         if msg:lower() == "stat" or msg:lower() == "status" then local total = 0
  56.             for k,v in pairs(SBLX.Banned) do total = total + 1 end
  57.             Tablet(plr,"Synchronised\nBan List\nGeneration X",Color3.new(1,1))
  58.             Tablet(plr,"An online ban system by einsteinK",Color3.new(1,1))
  59.             return Tablet(plr,"Banned members: "..total,Color3.new(1,1))
  60.         end
  61.         for k,v in pairs(SBLX.Banned) do
  62.             if k:sub(1,#msg):lower() == msg:lower() then
  63.                 TimeTablet(600,plr,k..": "..v,Color3.new(1,0.5))
  64.             end
  65.         end TimeTablet(600,plr,"Synchronised\nBan List\nGeneration X",Color3.new(1,1))
  66.     end,"Developer","Search trough the SBLX list for the given (partial) name")
  67. end repeat SBLX:Download() until not wait(30)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement