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

Restrict Names 1.2a


Post New Thread Reply   
 
Thread Tools Display Modes
drag1c
Junior Member
Join Date: Apr 2014
Location: Serbia, Nova Pazova
Old 11-27-2021 , 04:01   Re: Restrict Names 1.2a
Reply With Quote #391

(?i)\W*(brain damage)\W*

Could anyone explain me why this string does not work?
It should detect anyone with any type of case letter with this part inside nickname.
drag1c is offline
Send a message via Skype™ to drag1c
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-27-2021 , 14:20   Re: Restrict Names 1.2a
Reply With Quote #392

Quote:
Originally Posted by drag1c View Post
(?i)\W*(brain damage)\W*

Could anyone explain me why this string does not work?
It should detect anyone with any type of case letter with this part inside nickname.
You should provide examples (that you have actually tried) of what you expect should result in a match.

Why do you have parentheses around "brain damage"? Based on the very limited information provided, it doesn't seem like you would need those (but shouldn't prevent it from working).
__________________
fysiks is offline
kirksite
Member
Join Date: Feb 2021
Old 04-09-2023 , 23:40   Re: Restrict Names 1.2a
Reply With Quote #393

How do I increase the max length of name?

Last edited by kirksite; 04-09-2023 at 23:44.
kirksite is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-10-2023 , 22:50   Re: Restrict Names 1.2a
Reply With Quote #394

Quote:
Originally Posted by kirksite View Post
How do I increase the max length of name?
What do you mean? IIRC, the game engine has a hard coded name length limit that cannot be exceeded. The only name length parameter related to this plugin is for the names being loaded from the configuration file for rename punishment. This limit is currently 28 but can be increased to 32 (IIRC), change this value on line 113 and recompile.
__________________
fysiks is offline
kirksite
Member
Join Date: Feb 2021
Old 04-11-2023 , 00:53   Re: Restrict Names 1.2a
Reply With Quote #395

Quote:
Originally Posted by fysiks View Post
What do you mean? IIRC, the game engine has a hard coded name length limit that cannot be exceeded. The only name length parameter related to this plugin is for the names being loaded from the configuration file for rename punishment. This limit is currently 28 but can be increased to 32 (IIRC), change this value on line 113 and recompile.
Thanks for your response.

To confirm, you're referring to this line;
#define MAX_NAME_LEN 28
to
#define MAX_NAME_LEN 32

why would my compiled version be so much smaller than the amxx file available in this thread?
5 KB vs 14 KB?
kirksite is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-12-2023 , 00:11   Re: Restrict Names 1.2a
Reply With Quote #396

I think the forum compiler may include the unusable 64-bit version of the compiled code. I'm quit sure I remember that they removed that at some point in updates to AMX Mod X. I'm not super familiar with the compiler source code so I can't confirm myself.
__________________
fysiks is offline
AMD_Ryzen
New Member
Join Date: Jan 2021
Old 03-17-2024 , 05:47   Re: Restrict Names 1.2a
Reply With Quote #397

Tell me how to fill out the form in restrictnames.ini so that Russian letters are prohibited
Let's say a player with the nickname "Newbie" enters and his nickname changes to "Default_HuK"
(?i)^Newbie$ "name 'Newbie' cTaHDaPTHoe" 0 "Default_HuK"
And if a player comes in with Russian symbols, with a Russian nickname, for example, Александр, then what should the line look like?
If I do this ((? I) ^ Александр $ "name 'Александр' cTaHDaPTHoe" 0 "Default_HuK"), then nothing happens.
Write a ready-made line for restrictnames.ini that blocks all Russian characters
Thank you.
AMD_Ryzen is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 03-17-2024 , 13:17   Re: Restrict Names 1.2a
Reply With Quote #398

Your file will run miles long. There is code available to handle it. No need to waste hours adding every non-UTF8 in existence to a file.
__________________
DJEarthQuake 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 03:22.


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