Left 4 Dead

Left 4 Dead

View Stats:
Delta Mar 27, 2021 @ 8:09am
How to ban someone from my dedicated server?
Hi guys, I have a dedicated server set up. Unfortunately I get team killers joining. Is there a way to ban them in-game? I don't have time to open up the banned-user.cfg file and add their steamid while I'm playing.

Thanks
< >
Showing 1-14 of 14 comments
If you have installed plugins, write in the chat: !admin
In the menu you can choose options, look for the option to ban and choose the player you want to ban, you can also expel them only
Last edited by The 9ᵗʰ Survivor; Mar 27, 2021 @ 8:28am
Delta Mar 27, 2021 @ 8:44am 
Originally posted by The 9ᵗʰ Survivor:
If you have installed plugins, write in the chat: !admin
In the menu you can choose options, look for the option to ban and choose the player you want to ban, you can also expel them only

Thanks for the reply. I have sourcemods installed. Is there any specific plugin that I should have?

I tried ladmin and nothing happened.
Diggingwolf2605 Mar 27, 2021 @ 9:18am 
If you type in console 'sm plugins' it should list all running plugins, if it doesn't show anything then sourcemod isn't running.

Your addons folder should have both sourcemod and metamod folder as well as a metamod.vdf file.

If you don't have a metamod.vdf file, you can get it here: https://www.sourcemm.net/vdf

You would also need to add your self as an admin in the admins.simple file.

It should look like "STEAM_X:X:XXXXXX" "99:z"
Last edited by Diggingwolf2605; Mar 27, 2021 @ 9:21am
Delta Mar 27, 2021 @ 10:10am 
thanks for the info. when i type sm plugins into console it says:

SourceMod Plugins Menu:
unload - Unload a plugin
unload_all - Unloads all plugins
info - Information about a plugin
list - Show loaded plugins
load - Load a plugin
load_lock - Prevents any more plugins from being loaded
load_unlock - Re-enables plugin loading
refresh - Reloads/refreshes all plugins in the plugins folder
reload - Reloads a plugin

When I type "list" or "load" nothing happens. Do I need to download specific 'ban' plugins to ban people?

Sorry for the noob question.

Thanks
Delta Mar 27, 2021 @ 10:30am 
So I downloaded the Global banlist plugin. The ServerBans plugin is out of date.
Diggingwolf2605 Mar 27, 2021 @ 10:41am 
You should be able to ban player's just fine, you can use sm_addban 'minutes' 'id' or ban players through the admin menu.
sm_addban 0 STEAM_X:X:XXXXXX Use 0 for permanent.
Last edited by Diggingwolf2605; Mar 27, 2021 @ 10:42am
world peace Mar 27, 2021 @ 2:29pm 
There's definitely an easier way to do it then typing everything out but it took me some trial and error to figure it all out.

I ended up binding a key to bring up the admin controls that come with sourcemod. So when griefers come in it's a pretty quick thing to just kick/ban.

It's been a while tho I don't remember exactly how I accomplished it. I also had to change some config files so that the ban wouldn't be broadcasted to all other players, especially when a ban message was attached.

Edit: you may also want to look into the plugin called vote manager 2 or something. I had to do a lot of googling to figure out how to make sure my server was as grief proof as possible but it takes time.
Last edited by world peace; Mar 27, 2021 @ 2:32pm
Delta Mar 28, 2021 @ 8:51am 
Thanks for the tips guys, I appreciate it.

I have an unrelated question. I have a gaming laptop with wifi. When I start my dedicated server and play l4d for 10 minutes, the wifi disconnects and all the players have to leave.

Do you think this is a computer problem? or an internet problem?

Thanks
Delta Mar 28, 2021 @ 9:31am 
I forgot to add something to my last post. I created a banned_user.cfg file and added steam ID's like

banid 0 STEAM_0:0:523409495

The person I banned for team killing joined my game again. So the cfg file doesn't work.

Any thoughts?
world peace Mar 28, 2021 @ 1:46pm 
You can also check out gameservers.com. they host the server for you so you don't have to worry about your own internet connection. It's like 8 bucks a month for a l4d server in your location of choice, but it's worth. I work so it's not a big deal but I can see it being an issue if cash is tight. But that's how I and some other peeps do it.
Delta Mar 30, 2021 @ 8:07am 
Originally posted by Boom-diah!:
You can also check out gameservers.com. they host the server for you so you don't have to worry about your own internet connection. It's like 8 bucks a month for a l4d server in your location of choice, but it's worth. I work so it's not a big deal but I can see it being an issue if cash is tight. But that's how I and some other peeps do it.

Thanks for the tip. I've used Gameservers for L4D before but I don't think it's worth paying $8 a month. I'd rather setup a dedicated server on my pc.
CosmicD Mar 31, 2021 @ 12:08am 
If you use sourcemod, anc a plugin called "connect announce" you can always grab the steam ID from the join message and do !addban 0 STEAMID , it will also automatically write it in the banned_users.cfg file so it loads the next map. The 0 in this argument is important because it permanently bans players. , otherwise it's for X minutes only.

And believe me you're going to want to ban alot of accounts permanently. I can already give you a banlist of the most virulent offenders who always obsessively teamkill in game.

Griefing in this game is indeed a plague if you're not protected with a well managed gameserver.

Added layers of protection of their behaviour is to install votemanager 2 for l4d1. it allows you to suppress their behaviour of trying to kick the victim they just teamkilled.

Also have improved respawn and noclip ready at your fingertips so you can put yourself out of the map when they start their little game.

The best way to deal with griefers is to cheat out of their game and prevent their little dopamine rush, which is to demoralize and end every match they come across.

Then ban their asses.
Last edited by CosmicD; Mar 31, 2021 @ 12:13am
Delta Mar 31, 2021 @ 8:08am 
I've added about 30 names to my team killer ban list. They're all in the banned-user.cfg file which is in my cfg folder.

But one of the names joined my game and started shooting all of us.

Is there any possible reason why he was able to join even though I banned him? Once I realized he had joined and there was an error, I used !ban to permanently ban him but he joined 10 seconds later.

I'm puzzled.

Also, when I type exec server.cfg into the srcds server console, I get "couldn’t exec server.cfg" back.

Any thoughts?

EDIT: I found the answer. it turns out that I need to save the banned-user.cfg file in quotes. Otherwise it gets saved as banned-users.cfg.txt
Last edited by Delta; Mar 31, 2021 @ 10:07am
world peace Mar 31, 2021 @ 12:42pm 
Originally posted by CosmicD:
If you use sourcemod, anc a plugin called "connect announce" you can always grab the steam ID from the join message and do !addban 0 STEAMID , it will also automatically write it in the banned_users.cfg file so it loads the next map. The 0 in this argument is important because it permanently bans players. , otherwise it's for X minutes only.

And believe me you're going to want to ban alot of accounts permanently. I can already give you a banlist of the most virulent offenders who always obsessively teamkill in game.

Griefing in this game is indeed a plague if you're not protected with a well managed gameserver.

Added layers of protection of their behaviour is to install votemanager 2 for l4d1. it allows you to suppress their behaviour of trying to kick the victim they just teamkilled.

Also have improved respawn and noclip ready at your fingertips so you can put yourself out of the map when they start their little game.

The best way to deal with griefers is to cheat out of their game and prevent their little dopamine rush, which is to demoralize and end every match they come across.

Then ban their asses.
Would you be willing to trade ban-lists? I have a list of about 40 from the past 5 months or so. I'd be curious to cross-check your list with mine, or at least have your list so I can get those people immediately crossed off from oining my server. I can fr you or vice versa!

What do you mean by improved respawn and noclip at your fingertips? I thought you could only noclip with sv_cheats set to 1.
< >
Showing 1-14 of 14 comments
Per page: 1530 50

Date Posted: Mar 27, 2021 @ 8:09am
Posts: 14