Raised This Month: $51 Target: $400
 12% 

Only Standard ASCII Characters in name


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Technical/Development       
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 12-30-2021 , 18:08   Only Standard ASCII Characters in name
Reply With Quote #1

Only Standard ASCII Characters in name


Informations
Description
A plugin which check player's name if it contains Standard ASCII Characters. If not, the plugin will change his name, with one randomly choosen from the settings file.

It has reAPI support. You can use it by uncommenting line 4: #define USE_REAPI

NOTE! When a player is connecting to server, his name is checked too, because ClientUserInfo is called when a player is joining the server in order to get his setinfo fields, like his "name" field. Only using Fakemeta version!

NOTE 2! We need to call the checking function in client_putinserver() state, because reapi's RG_CBasePlayer_SetClientUserInfoName is called only
when a player is changing his name, not the same behaviour as RG_CSGameRules_ClientUserInfoChanged.


Requirements
  • AmxModX 1.8.2+
  • Fakemeta module
  • Optional ReAPI Module ( reHLDS Needed )
Installation
  • Download the archive from down below.
  • Compile anti_non_ascii_name.sma using a local compiler or a web compiler.
  • Put anti_non_ascii_name.amxx in amxmodx/plugins folder
  • Go to amxmodx/configs/plugins.ini, open the file and write on the last line anti_non_ascii_name.amxx.
  • Restart your server or change the map and you're ready to go.
ChangeLog

FULL Changelog can be found HERE
  • Version 1.1:
    • Initial Release
  • Version 1.2:
    • Added a function which checks player's name.
    • Improved file reading.
  • Version 1.3:
    • Added a cvar for server monitoring.
    • Improved code
GitHub Project

DOWNLOAD SOURCE CODE
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]

Last edited by Shadows Adi; 01-03-2022 at 16:20.
Shadows Adi is offline
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: Jupiter
Old 12-30-2021 , 18:20   Re: Prevent Non-Standard ASCII Characters in name
Reply With Quote #2

I respect the effort but is there a reason how a server owner can benefit from this plugin
bigdaddy424 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-30-2021 , 18:38   Re: Prevent Non-Standard ASCII Characters in name
Reply With Quote #3

Putting ReAPI under requirements sounds like you must have ReAPI in order to use the plugin, but the code says otherwise.
You should mention it's optional and explain how to enable/disable it.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 12-30-2021 , 19:06   Re: Prevent Non-Standard ASCII Characters in name
Reply With Quote #4

Quote:
Originally Posted by OciXCrom View Post
Putting ReAPI under requirements sounds like you must have ReAPI in order to use the plugin, but the code says otherwise.
You should mention it's optional and explain how to enable/disable it.
Yes, you're right, forgot about that. Thank you, description updated!

Quote:
Originally Posted by bigdaddy424 View Post
I respect the effort but is there a reason how a server owner can benefit from this plugin
Thank you and yes, some plugins can be broke using non standard ASCII characters, depends how / for it's the player name used. For administrative commands too, as example, amx_kick, amx_slay ( and yes, I know there is the option for userid, but nickname is more handy, because you just press TAB and then type the command in console ) and so on.

Maybe there are a few client exploits based on the N-S ASCII characters, correct me if I'm wrong because I am not well documented about this part of GoldSRC engine.

And, in my opinion, it is bothering to see that special characters, tbh.
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]

Last edited by Shadows Adi; 12-30-2021 at 19:07.
Shadows Adi is offline
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: Jupiter
Old 12-30-2021 , 19:26   Re: Prevent Non-Standard ASCII Characters in name
Reply With Quote #5

Your response to me should've been on the thread explaining how this plugin helps you deal with console commands with players using non standard letters and other stuff. Great plugin overall.
bigdaddy424 is offline
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 12-30-2021 , 19:40   Re: Only Standard ASCII Characters in name
Reply With Quote #6

Thank you! Tomorrow I will optimize the plugin.
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi is offline
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 12-31-2021 , 03:26   Re: Only Standard ASCII Characters in name
Reply With Quote #7

Update!
Version 1.2

  • Added a function which checks player's name.
  • Improved file reading.
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi is offline
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 01-01-2022 , 17:53   Re: Only Standard ASCII Characters in name
Reply With Quote #8

Update
Version 1.3:
  • Added a cvar for server monitoring.
  • Improved code
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode