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

Restrict Names 1.2a


Post New Thread Reply   
 
Thread Tools Display Modes
Mulan
Senior Member
Join Date: Jul 2005
Location: [GER]Worbis
Old 06-13-2006 , 11:59  
Reply With Quote #121

works fine with lowercase letters
big thx
__________________
Mulan is offline
Send a message via ICQ to Mulan
jd91651
Member
Join Date: Mar 2006
Old 08-11-2006 , 01:38   Re: Restrict Names 1.2a
Reply With Quote #122

What line/lines do I need to change (and to what) in the SMA so that the steamid of the affected player ends up in the log with the other stuff.
Here is an example entry from my log that I wish had included the steamid along with the other stuff.

[HAC] Playername was banned because "[hac]" matched regex #25, "\[ha[ck]\]" (This cheating clan is banned-now so are you)

I'd like it to say:

[HAC] Playername STEAMID_0:0:1234567890 was banned because "[hac]" matched regex #25, "\[ha[ck]\]" (This cheating clan is banned-now so are you)
__________________
Keep the karma Give me carmel
jd91651 is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 08-11-2006 , 06:54   Re: Restrict Names 1.2a
Reply With Quote #123

I told brad to do this a long time ago :-p, to use standard logging format. I think he has a half done updated version with this in it, maybe he could finish it?
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 08-15-2006 , 09:27   Re: Restrict Names 1.2a
Reply With Quote #124

Fine. I'll finish it. And yes, the logging format will be changed in the new version.
__________________
Brad is offline
iggy_bus
BANNED
Join Date: Oct 2005
Old 11-04-2006 , 15:12   Re: Restrict Names 1.2a
Reply With Quote #125

Can this plugin be set so if someone has name that is only 1 or 2 characters long, so the plugin renames player's name to more that 3 chars or something?
iggy_bus is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 11-04-2006 , 15:38   Re: Restrict Names 1.2a
Reply With Quote #126

Yes. Add the following to your restnames.ini file:

Code:
^.{1,2}$ "name length must be at least 3 characters" 0 "NameShorty"
You can, of course, use any name you'd like rather than "NameShorty". A number will be appended to the name you supply to make sure the name is unique.
__________________
Brad is offline
iggy_bus
BANNED
Join Date: Oct 2005
Old 11-04-2006 , 23:56   Re: Restrict Names 1.2a
Reply With Quote #127

tnx, + 4u
iggy_bus is offline
Vm|Mayhem
Senior Member
Join Date: Feb 2005
Location: Murrieta, CA.
Old 12-18-2006 , 18:55   Re: Restrict Names 1.2a
Reply With Quote #128

How would I block hitler in all shapes and forms? Still trying to learn this regex stuff. Powerfull but confusing. :0

hitler
h i t l e r
h1tl3r
h1tler
hitl3r

Edit: this worked for me.

h[\W_]*[i1\W_][\W_]*t[\W_]*l[\W_]*[e3\W_][\W_]*r "racism" 1

Last edited by Vm|Mayhem; 12-18-2006 at 21:07.
Vm|Mayhem is offline
Send a message via AIM to Vm|Mayhem
Vm|Mayhem
Senior Member
Join Date: Feb 2005
Location: Murrieta, CA.
Old 12-20-2006 , 20:09   Re: Restrict Names 1.2a
Reply With Quote #129

Quote:
// max number of words in word list
#define MAX_PHRASE 63
Can you increase the number of words, without screwing up the plugin? If so, how much?
Vm|Mayhem is offline
Send a message via AIM to Vm|Mayhem
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 12-20-2006 , 22:10   Re: Restrict Names 1.2a
Reply With Quote #130

Into the thousands if you're feeling really saucy.
__________________
Brad 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 01:32.


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