*pasting from my PlanetHL Console command txt.*
BANNING ONLY
Kicking a player is only temporary, though. They can come back into the server immediately if they wanted to... unless you ban them. Use the "users" command to find their "uniqueid", and then ban them with "banid <minutes> <uniqueid>", where <minutes> is the number of minutes you want to ban the player from the server. Use 0 minutes to make the ban permanent. For example, if you wanted to permanently ban uniqueid 123456789, then you would type "banid 0 123456789". If you want to make sure that someone is banned permanently even after your server has been restarted, be sure to "writeid" before you quit the server to write the banned uniqueid's to the banned.cfg. Then, add "exec banned.cfg" to your server.cfg, so whenever you restart your server, it will read the uniqueid's listed in the banned.cfg and continue to ban them.
BOTH
Sometimes we come across that player that needs to be kicked and banned at the same time, so they do not come back in after being kicked while we are frantically trying to type in the ban commands. Now, we can do both in one fell swoop. Type "users" to get the players "uniqueid". Then use "banid <minutes> <uniqueid> kick". And *poof* - the player in question has been both kicked and banned. Again, be sure to "writeid" in the console next, and add "exec banned.cfg" to the server.cfg.
Getting List Of Banned Players
It is a good idea to keep a list of the users that you have banned permanently from your server. The easiest way to do this is to "writeid" at the console before you quit the server to write the banned user "uniqueids" to the banned.cfg for. You can then open up banned.cfg to see who all has been banned. Also, be sure to add "exec banned.cfg" to your server.cfg so that everytime the map changes or the server restarts, it will reban those uniqueid's.
Removing Player From Ban
If you want to remove a player from the banned list, use the "removeid <uniqueid>" in the console. And be sure to remove it from the server.cfg found in the directory of the mod you use for your serverif you placed it there as well