Raised This Month: $32 Target: $400
 8% 

Auto swear gag


Post New Thread Reply   
 
Thread Tools Display Modes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-21-2012 , 09:49   Re: Auto swear gag
Reply With Quote #101

It's all about the patterns and match indexes.

Here's an example:
^.*fuck.*$

That is a simple one saying that players cannot say "fuck"..

If you wanted to white list a word or pattern for this:
1. Add parenthesis around your word in the pattern for the swear filter: ^.*(fuck).*$
2. Count the number of open parenthesis it takes to reach your word: 1
3. Use this new pattern as the swear filter, and this number is your match index.
4. Add a white list that will match "fucking": /fucking/

That's it.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 03-22-2012 , 04:52   Re: Auto swear gag
Reply With Quote #102

Cant make it work.

; fuck
"regex" "^.*(fuck).*$" 0

Whitelist:
/fucking/

But u can still write "fuck fucking".

Dont think you understood the problem. One whitelistword in the sentence makes ALL words pass the filter.
Ejziponken is offline
Schpraaankiii
Veteran Member
Join Date: Dec 2009
Location: Sweden Norrköping
Old 03-25-2012 , 16:19   Re: Auto swear gag
Reply With Quote #103

When I use a whitelisted word in a sentence and then a blocked word I wont get blocked.
Ex, I have blocked "Hor" and whitelisted "horde".

"horde" - wont get blocked
"horde fucking niggah hoe" - wont get blocket eather
__________________
CAOSK-ESPORTS.COM
Schpraaankiii is offline
Send a message via Skype™ to Schpraaankiii
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 03-28-2012 , 09:18   Re: Auto swear gag
Reply With Quote #104

Quote:
Originally Posted by Schpraaankiii View Post
When I use a whitelisted word in a sentence and then a blocked word I wont get blocked.
Ex, I have blocked "Hor" and whitelisted "horde".

"horde" - wont get blocked
"horde fucking niggah hoe" - wont get blocket eather
Thats the same problem I have i think? :S
Ejziponken is offline
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 04-06-2012 , 13:32   Re: Auto swear gag
Reply With Quote #105

bump.. :E
Ejziponken is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 08-07-2012 , 12:03   Re: Auto swear gag
Reply With Quote #106

I made this pattern:
"^.*[k]+[^a-z]*[u]+[^a-z]*[r]+[^a-z]*[a@4c]+[^a-z]*[ci1!u]+$"
Problem is that pattern isn't working if swear word is the first word in sentence or if it has word behind.

Like:
nesto kurac - blocked
kurac nesto - not blocked.
nesto kurac nesto - not blocked
nesto kur@c... - not blocked

All of this should be blocked...

Last edited by OvidiuS; 08-07-2012 at 12:07.
OvidiuS is offline
Send a message via Skype™ to OvidiuS
counterstrike1.6
Member
Join Date: Oct 2020
Old 07-18-2022 , 01:34   Re: Auto swear gag
Reply With Quote #107

i want log file to be made like it if someone swear it ... log will show like this

if one word: [word]
if in sentence: [word] hahhaha eee hahah [word] ewewe sdad [word]

not like that
-word
-word
counterstrike1.6 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 17:31.


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