• Announcements

    • Brentonator

      Forum Rules (Please Read)

      Hello everyone and welcome to the No More Room In Hell Forums! We greatly appreciate your interest and support. Please feel free to begin post and become a part of this community. But please make sure that you read and understand the following rules so things can stay as clean and as orderly as possible around here. These rules are expected to be follow by any and all members at all times. Disobeying these rules will result in disciplinary action by a moderator. #1. Off color remarks are acceptable but can be deemed inappropriate at the discretion of the moderators. #2. Flaming and disrespecting other members of this community or this mod is strictly prohibited. #3. Please do not post links relating to warez or illegal downloading. #4. No offensive content is to be posted (gore, dead babies, porn). #5. Please do not spam topics to increase your post count. #6. No excessively large signatures. Signatures that violate this will be modified. #7. Signatures are not to be used as a spamming tool. If your signature's sole purpose is to annoy or distract other members, it will be removed. #8. Please do your part to be as friendly, respectful, and helpful to anyone and everyone on this forum. #9. Your posts may be removed at any time at our sole discretion. #10. Remember the terms of your registration...a copy is posted below but may not represent the latest version of our terms of use. #11. No advertising other communities or products. Have fun.
Sign in to follow this  
Followers 0
Stings2pee

[SourceMod] Unacceptable UserName Auto-Kicker?

4 posts in this topic

Lately I've been finding lots of players setting their names to annoying unpronounceable shit like:

"¹¬■×Þƒƒ¿"

"你他媽的"

or my personal favorite:

"­" (an invisible character using Alt+0173)

I managed to find a SourceMod plugin that prevents users from connecting with specific pre-configured usernames that the server owner sets to be unallowed:

https://forums.alliedmods.net/showthread.php?t=186346

However, there's a couple fundamental flaws with this approach.

1) There's literally trillions of possible name combinations. It's impossible to list every single name combination using every single asian character, alt code, etc..

2) .txt does not recognize special characters or the notorious invisible character I mentioned above. So it's impossible to even begin listing these combinations.

So...

Does anyone know of a plugin that can kick players whom attempt to connect WITHOUT having a minimum of three consecutive letters or numbers within their username (for example)? This would be a much easier way to solve the issue. Such a plugin would dramatically help the fight against troublesome players (especially on servers with friendlyfire enabled). Thanks!

Edited by Stings2pee

Share this post


Link to post
Share on other sites

Its a known problem, but you can easily target those players.

You've got 2 ways to do this:

Via console: Get up your console ingame and type "status" hit enter. Now you can see all players on the server.

When you found the one you'd like to kick, look at the start of the line, you'll see his userid.

Now you can kick him by his userid:

  • sm_kick #<userid> [reason]

OR use the chat:

  • /kick #<userid> [reason]

Valid examples would be:

Console: sm_kick #123 "Don't break the rules, you've been warned"

Chat: /kick #512

Via menu: Type sm_admin into your console or /admin into the chat. Navigate to "Player Management", then to "Kick player" and select the player, you'd like to kick.

I hope that helps you. :-)

Share this post


Link to post
Share on other sites

Thanks for the reply, Chanz. This information should certainly be made better available to server owners/admins. I've seen countless server admins unable to do deal with invisible named users on a number of Source games (not just NMRiH). It's also a common mistake that many people think the "userid" refers to "SteamID" which obviously doesn't work for sm_kick or sm_ban. :P

I've posted a request on AlliedModders so if someone manages to make a plugin for this, I'll be sure to link it here. It'll be nice to have an automated system due to admins not always being online to manually deal with it. Surely I can't be the only server owner with this headache. Anyways, thanks again!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0