This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Restrict Names 1.2a


Post New Thread Reply   
 
Thread Tools Display Modes
erjon
Junior Member
Join Date: Mar 2007
Old 03-29-2007 , 12:52   Re: Restrict Names 1.2a
Reply With Quote #161

no those name where to individual names. (CRO)rojeba and another one is rojeba[DE]. well what i wont to understand is how to ban names with non alphabetic characters. i did what angelina said and when i use (CRO)rojeba the ban works. but when i use rojeba[DE] it wont.
on this leet.cfg
a=@4
e=3
i=1!
o=0
o=()
s=$
t=7

do u have to use for example o=[] or another character like j=[], to make this work?
erjon is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 03-29-2007 , 13:07   Re: Restrict Names 1.2a
Reply With Quote #162

Go here to learn about regular expressions: http://www.regular-expressions.info/

"rojeba[de]" didn't work because the square brackets, "[" and "]", are special characters in regex. So are the round brackets, "(" and ")". That's why I escaped them ("\").

The following two expressions will work for the two names.
  • \(cro\)rojeba
  • rojeba\[de\]
However, using one expression lets you utilize the power of regular expressions.

The following will simply match ANY name with "rojeba" in it:
  • rojeba

At any rate, I don't think what you're trying to do is possible with this plugin. It sounds like there is a specific player that you don't want on your server. It is ridiculous to try to keep that player off by name. Impossible. All they have to do is change their name.
__________________
Brad is offline
erjon
Junior Member
Join Date: Mar 2007
Old 03-29-2007 , 13:31   Re: Restrict Names 1.2a
Reply With Quote #163

I know that every player will change his name. but in my server some guys even i banned them, they always use again their name. that's why i wont to ban by specific name.
anyway i try this metode now, and i found a bug, maybe. when i join on server with restricted name, like (cro)rojeba, the server doesn't ban me but another player on server. how this is possible? i use amxbans v5.0 and i set on console restnames_amxban 1, so i can use with amxbans v5.0. what's wrong?
erjon is offline
Vm|Mayhem
Senior Member
Join Date: Feb 2005
Location: Murrieta, CA.
Old 03-29-2007 , 17:29   Re: Restrict Names 1.2a
Reply With Quote #164

Quote:
Originally Posted by Brad View Post
@Vm|Mayhem:

I was wrong. The regex I gave will match all of the following:

&blahblahblah& <- correct
blah&blahblah& <- incorrect
&blah&blahblah <- incorrect
blah&blah&blah <- incorrect

The regex to use to catch only the names with the ampersands on the outside is: \A&.*?&\z
Thanks Brad.
Vm|Mayhem is offline
Send a message via AIM to Vm|Mayhem
erjon
Junior Member
Join Date: Mar 2007
Old 03-30-2007 , 06:05   Re: Restrict Names 1.2a
Reply With Quote #165

please Brad help me, because the plugin din't ban the right person, but someone else.
erjon is offline
erjon
Junior Member
Join Date: Mar 2007
Old 03-30-2007 , 06:28   Re: Restrict Names 1.2a
Reply With Quote #166

maybe the problem is that i use counter strike non steam. and get_user_authid not work with non steam.
sow seeing the code i was thinking that this maybe will work:

new ip[50]
get_user_ip(id, ip,49, 1)
server_cmd("amx_ban %i %s %s", banLength, ip, banReason)

Is it right?
erjon is offline
erjon
Junior Member
Join Date: Mar 2007
Old 03-30-2007 , 07:42   Re: Restrict Names 1.2a
Reply With Quote #167

THanks Brad. the problem was solved.
sow the problem was with ban type.
maybe u have to include not only ban by authid, but and ban by ip. fot those who use non steam

Anyway thanks a lot for this wonderfull plugin.
erjon is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 03-30-2007 , 08:46   Re: Restrict Names 1.2a
Reply With Quote #168

AMX Mod X doesn't support non-steam and by extension, neither do I.
__________________
Brad is offline
Old 04-01-2007, 11:01
Angelina
This message has been deleted by Angelina.
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 04-01-2007 , 11:21   Re: Restrict Names 1.2a
Reply With Quote #169

The * means repeat the previous character 0 or more times. The ? means, make it optional. I think what you meant was .*motherfucker.* The . means any character. So, .* means any character 0 or more times.

I think a better regex for you would simply be: motherfucker

By default it'll look for that word anywhere within the name. Therefore it'd match each of your examples. Granted, the previous regex I gave would as well but this is much simpler.
__________________
Brad is offline
Old 04-01-2007, 11:38
Angelina
This message has been deleted by Angelina.
Seehank
Senior Member
Join Date: Nov 2005
Location: Slovakia
Old 05-06-2007 , 08:03   Re: Restrict Names 1.2a
Reply With Quote #170

Firstly, good plugin! Needs proper setting but cool...

But the thing is: Is it possible to change the code so that the plugin will use restrictnames.ini from different location? My goal is to save some time when adding new restricted namem because I have multiple servers on one machine. That means no ftp no mysql or sql needed only to put it to some location and make the plugint to use it from there... Any advice?
Seehank 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 23:52.


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