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
__________________