SHARE
TWEET
Untitled
a guest
Jul 12th, 2017
18
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- --[[
- This will kick the players upon joining, it will not ban them, so they cannot use a backdoor to bypass their ban.
- You should add SteamID's / IP Addresses when you need to blacklist more players.
- --]]
- local function spawn( ply )
- --[[
- Add SteamID's to Blacklist here. The last SteamID on the list must !NOT! have , after it.
- Each SteamID added must follow like:
- "STEAM_0:0:12345678",
- "STEAM_0:0:87654321",
- "STEAM_0:0:11112222",
- "STEAM_0:0:33330000"
- --]]
- local BlackList = {
- // THESE ARE FAKE STEAMID'S AND SHOULD BE CHANGED/REMOVED.
- "STEAM_0:0:12345678",
- "STEAM_0:0:87654321",
- "STEAM_0:0:11112222",
- "STEAM_0:0:33330000"
- }
- --[[
- Add IP Addresses to Blacklist here. The last IP Address on the list must !NOT! have , after it.
- Each IP Address added must follow like:
- "111.111.111.111",
- "222.222.222.222",
- "333.333.333.333",
- "444.444.444.444"
- --]]
- local IPBlackList = {
- // THESE ARE FAKE IP ADDRESSES AND SHOULD BE CHANGED/REMOVED.
- "111.111.111.111",
- "222.222.222.222",
- "333.333.333.333",
- "444.444.444.444"
- }
- // Change this if you want to change the Blacklist message. " \n " is a new line.
- local BlacklistMsg = "\n\nYou cannot join this server.\nYou have been blacklisted"
- // Don't touch anything below here. \\
- if ply:SteamID(BlackList) then
- ply:Kick(BlacklistMsg)
- print( ply:GetName().." Attempted to join, but is blacklisted. \n" )
- end
- if ply:IPAddress(IPBlackList) then
- ply:Kick(BlacklistMsg)
- print( ply:GetName().." Attempted to join, but is blacklisted. \n" )
- end
- end
- 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.
