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

Restrict Names 1.2a


Post New Thread Reply   
 
Thread Tools Display Modes
hasanalizxc
Senior Member
Join Date: May 2018
Old 05-21-2018 , 21:26   Re: Restrict Names 1.2a
Reply With Quote #371

Quote:
Originally Posted by fysiks View Post
I do it based on my memory and I just try it in Notepad++ to see if it works. I updated my original post to include another of the control characters that I forgot to list.



No, I will not do it for you. It's not that hard. It's simple and I've already told you how to do it.

Once you get them working like this, you can modify them to account for variable spaces and other variations.
I just asked, but it does not matter. It recognizes (works) nicknames without spaces. When i add a nick which has a space it doesnt detect. I did as you said, but again it does not detect the gap between the nicknames.

for example:

"tonerci dayi" "yasak nick" 1

And other problem is, i added the r00t nick to the .ini file and when i try to login with WNG|r00t it kicks me. I looked to the console and i saw this: gr00t kicked. why does it recognize only 5 letters of my nick and kick it? i dont want to this. what I wrote, I want to kick that nick. what is the problem and reason?

Last edited by hasanalizxc; 05-22-2018 at 09:49.
hasanalizxc is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-22-2018 , 21:42   Re: Restrict Names 1.2a
Reply With Quote #372

Quote:
Originally Posted by hasanalizxc View Post
I just asked, but it does not matter. It recognizes (works) nicknames without spaces. When i add a nick which has a space it doesnt detect. I did as you said, but again it does not detect the gap between the nicknames.

for example:

"tonerci dayi" "yasak nick" 1
To detect any number of spaces between word, replace the space with "\s*".

Quote:
Originally Posted by hasanalizxc View Post
And other problem is, i added the r00t nick to the .ini file and when i try to login with WNG|r00t it kicks me. I looked to the console and i saw this: gr00t kicked. why does it recognize only 5 letters of my nick and kick it? i dont want to this. what I wrote, I want to kick that nick. what is the problem and reason?
Well, since "r00t" is in the name "WNG|r00t" then it worked exactly how it was designed.

If you need to match it exactly, you should be able to put a '^' at the front and a '$' at the end.
__________________

Last edited by fysiks; 05-22-2018 at 21:53.
fysiks is offline
fatal_nl
Member
Join Date: Apr 2017
Old 08-09-2018 , 17:12   Re: Restrict Names 1.2a
Reply With Quote #373

This doesn't work properly with ReHLDS. If a player with a restricted name connects and join as a spectator, the plugin spawns, rename and kills the spectator. This is causing rounds not ending when all players are dead because the server thinks there's a alive T or CT. It is also interfering with other plugins: is_player_alive think this renamed spectator is alive.. Is there another way the rename a spectator? Please no slow hacking method.

Last edited by fatal_nl; 08-10-2018 at 22:02.
fatal_nl is offline
fatal_nl
Member
Join Date: Apr 2017
Old 08-11-2018 , 06:33   Re: Restrict Names 1.2a
Reply With Quote #374

I got it working with a bool, true on rename function of this plugin, a fakemeta engclient function and make it false again.

Last edited by fatal_nl; 08-11-2018 at 06:35.
fatal_nl is offline
khashayar007
Senior Member
Join Date: Jan 2015
Location: Macedonia
Old 12-06-2018 , 15:29   Re: Restrict Names 1.2a
Reply With Quote #375

I need a regex to match this 0.0.0.0 or any form of string that has those numbers on that sequential order like this 0 0 aa0 dd0

Last edited by khashayar007; 12-07-2018 at 06:14.
khashayar007 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-06-2018 , 21:05   Re: Restrict Names 1.2a
Reply With Quote #376

Replace the "." with ".*".
__________________
fysiks is offline
khashayar007
Senior Member
Join Date: Jan 2015
Location: Macedonia
Old 12-07-2018 , 06:35   Re: Restrict Names 1.2a
Reply With Quote #377

Thanks
khashayar007 is offline
fatal_nl
Member
Join Date: Apr 2017
Old 12-11-2018 , 00:21   Re: Restrict Names 1.2a
Reply With Quote #378

I'm trying to match "Default-" without success.

Edit: fixed with "Default[-]\g"

Edit2: and suddenly it stopped working..

Last edited by fatal_nl; 12-11-2018 at 15:04.
fatal_nl is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-11-2018 , 22:30   Re: Restrict Names 1.2a
Reply With Quote #379

Quote:
Originally Posted by fatal_nl View Post
I'm trying to match "Default-" without success.

Edit: fixed with "Default[-]\g"

Edit2: and suddenly it stopped working..
That first one should work assuming that's actually what you are trying to match. Are you sure that's exactly what you are trying to match?

The second one is not a valid expression/pattern as far as I can tell. It compiles but I'm not sure what it would match.
__________________

Last edited by fysiks; 12-11-2018 at 22:44.
fysiks is offline
fatal_nl
Member
Join Date: Apr 2017
Old 12-12-2018 , 10:40   Re: Restrict Names 1.2a
Reply With Quote #380

It now works successfully with "Default[+-]".

Last edited by fatal_nl; 12-12-2018 at 10:41.
fatal_nl is offline
Reply


Thread Tools
Display Modes

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 15:18.


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