How to save bans on a GMod server
Type writeid in the server console to save permanent SteamID bans to banned_user.cfg, so they survive a restart.
writeid
Saves permanent SteamID bans to banned_user.cfg so they survive a restart.
writeid Examples
writeid Save bans.
What it does
Bans made with banid live in memory until written out. Execute the file in server.cfg to load them on startup.
The game's own description: Writes a list of permanently-banned user IDs to banned_user.cfg.
Run it on your server
On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to garrysmod/cfg/server.cfg. New to this? Start a GMod server first.
Your own
GMod server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.