Raised This Month: $ Target: $400
 0% 

[Idea] Language Filter


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
l0gen
Member
Join Date: Apr 2006
Location: The Netherlands
Old 03-06-2009 , 12:10   [Idea] Language Filter
Reply With Quote #1

Language Filter.
Because most people have lack of a server message saying "Please speak English only" etc. and just start talking some crap language. ^^'

So if you have a server which is English only, other languages should be banned and not be visible to the server chat.

The user gets a warning when he tries to talk a language that is banned.

This can be done by looking for words in the players chat, if it contains more then X amount of 'banned' language words the chat won't come trough.

Then we need a file with most used words in a server in different languages.

Some cvars that can be used.
Code:
// Enable or disable the filter.
sm_langfilter 1/0

// Maximum of banned words in a sentence.
sm_langfilter_words 3

// 0=Chat won't come trough / 1=Chat will be visible, but player gets a warning, and kick/ban after X attempts.
sm_langfilter_mode 0/1

// Kick after x attempts to talk a banned language.
sm_langfilter_kick 5

// Ban after x attempts. (0=disabled)
sm_langfilter_ban 10

// Block certain languages.
sm_langfilter_banlang_disallow ""

// Allow certain languages.
sm_langfilter_banlang_allow "EN NL"

// Custom warn message to player (leave blank for default)
sm_langfilter_warn_msg "Your message could not be sent, %s only please!"
Good idea, or just not possible because there are too many languages and words?

/discuss
__________________
l0gen is offline
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 03-06-2009 , 12:39   Re: [Idea] Language Filter
Reply With Quote #2

No es posible que crear.

There's just too many words and too many languges. The only half feasible solution is to check for characters that are not in the english language. é á etc.. but that's still easily circumvented.

__________________
pheadxdll is offline
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 03-06-2009 , 12:42   Re: [Idea] Language Filter
Reply With Quote #3

Quote:
Because most people have lack of a server message saying "Please speak English only" etc. and just start talking some crap language. ^^
I would say about half of this forum give or take speaks a different language. Your kind of shooting yourself in the foot on this one from the get go. Your also coming across pretty stuck up thinking English is the "best" language or something with the condescending tone towards others.

On the note of your plugin, goodluck, you can check for strange characters made by foreign keyboards, but thats about as close as your going to get. Something like this is not really doable even if your intentions were good.
__________________
CrimsonGT 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 18:30.


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