SHARE
TWEET

Untitled

a guest Jul 12th, 2017 18 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[
  2.     This will kick the players upon joining, it will not ban them, so they cannot use a backdoor to bypass their ban.
  3.     You should add SteamID's / IP Addresses when you need to blacklist more players.
  4. --]]
  5.  
  6. local function spawn( ply )
  7.  
  8. --[[
  9.     Add SteamID's to Blacklist here. The last SteamID on the list must !NOT! have , after it.
  10.     Each SteamID added must follow like:
  11.     "STEAM_0:0:12345678",
  12.     "STEAM_0:0:87654321",
  13.     "STEAM_0:0:11112222",
  14.     "STEAM_0:0:33330000"
  15. --]]
  16. local BlackList = {
  17. // THESE ARE FAKE STEAMID'S AND SHOULD BE CHANGED/REMOVED.
  18. "STEAM_0:0:12345678",
  19. "STEAM_0:0:87654321",
  20. "STEAM_0:0:11112222",
  21. "STEAM_0:0:33330000"
  22. }
  23.  
  24. --[[
  25. Add IP Addresses to Blacklist here. The last IP Address on the list must !NOT! have , after it.
  26.     Each IP Address added must follow like:
  27.     "111.111.111.111",
  28.     "222.222.222.222",
  29.     "333.333.333.333",
  30.     "444.444.444.444"
  31. --]]
  32. local IPBlackList = {
  33. // THESE ARE FAKE IP ADDRESSES AND SHOULD BE CHANGED/REMOVED.
  34. "111.111.111.111",
  35. "222.222.222.222",
  36. "333.333.333.333",
  37. "444.444.444.444"
  38. }
  39.  
  40. // Change this if you want to change the Blacklist message. " \n " is a new line.
  41. local BlacklistMsg = "\n\nYou cannot join this server.\nYou have been blacklisted"
  42.  
  43.  
  44.     // Don't touch anything below here. \\
  45.    
  46.    
  47.     if ply:SteamID(BlackList) then
  48.     ply:Kick(BlacklistMsg)
  49.     print( ply:GetName().." Attempted to join, but is blacklisted. \n" )
  50.  
  51.     end
  52.    
  53.     if ply:IPAddress(IPBlackList) then
  54.     ply:Kick(BlacklistMsg)
  55.     print( ply:GetName().." Attempted to join, but is blacklisted. \n" )
  56.  
  57.     end
  58. end
  59. hook.Add( "PlayerInitialSpawn", "kick_blacklisted", spawn )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top