SA-MP Forums Archive
[FilterScript] AntiSwear - Featuring 22 languages!! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] AntiSwear - Featuring 22 languages!! (/showthread.php?tid=196374)

Pages: 1 2


AntiSwear - Featuring 22 languages!! - Sinner - 05.12.2010

Sinner's Anti Swear System


What does it do?

♦ This script will filter out all offensive words in the text a player types, if it finds any it will block out the word
(example: **** you). Also, it will give the player a warning, after 5 warnings (by default) the player will get kicked for offensive language.

How many languages are there to choose from?

♦ 22 in total, but only 1 at a time

Featured languages:
• English
• Dutch
• Estonian
• Finnish
• French
• German
• Greek
• Hebrew
♦ Hindi
• Hungarian
• Indonesian
• Italian
• Japanese (simplified)
• Korean
• Norwegian
• Polish
• Russian
• Serbian
• Slovenian
• Spanish (original and South-African)
• Swedish
• Turkish

Why can you only pick 1 language at a time?

♦ This has 2 reasons, the first one is to reduce lagg since the script must loop through all possible words, if you would put in all the languages it had to loop through 1000+ words for every line of text a player types, typically this would induce lagg. The second reason is because some words in one language are not offensive in another, putting in all languages would cause the script to censor waaay to much words initially not ment to be offensive.

Will this really block out ALL offensive language?

♦ No, that would be impossible, it WILL block out the most commonly used ones though.

How to configurate

♦ If you want it in english, don't cofigure anything, it's good to go.

♦ If you want it in another language, follow these steps:
• COMMENT OUT the swear words in english
• UNCOMMENT the language of your choice (every language is mentioned above the list of swearwords)
• SPECIFY the number of words in the swear[][] list in the "#define MAX_WORDS" define (important to reduce lagg)
• SPECIFY the max lenght of the swearword in the "#define MAX_WORD_LEN" define

Example



Known bugs

• Sometimes the script will indentify trivial words like "assasins" as a swearword because it has "ass" in it.

Download: V1.2

Megaupload: http://www.megaupload.com/?d=3OF4D2VJ
SolidFiles: http://www.solidfiles.com/d/91e12/
PasteBin: http://pastebin.com/2iLU3nx7

Credits

• Sinner
• Wikipedia for a considerable part of the words

Hope you enjoy it!


EDIT: I don't actually speak 22 languages, I only provide a system to censor the words, and some basic words I found on wikipedia. Don't troll at me for not correctly translating languages I don't speak--Instead, translate them properly yourself.


Re: AntiSwear - Featuring 22 languages!! - gimini - 05.12.2010

http://pastebin.com/ please, thanks.


Re: AntiSwear - Featuring 22 languages!! - TouR - 05.12.2010

If you need some help with greek tell me, I am Greek so yeah i know many of them xD


Re: AntiSwear - Featuring 22 languages!! - Sinner - 05.12.2010

Quote:
Originally Posted by gimini
Посмотреть сообщение
http://pastebin.com/ please, thanks.
Done, thanks.


Re: AntiSwear - Featuring 22 languages!! - Noss* - 05.12.2010

I don't really understand why someone would want a anti swear.The game is from 18 Years and over anyways.It's not like anyone should be offended on the game.


Re: AntiSwear - Featuring 22 languages!! - Zh3r0 - 05.12.2010

Quote:
Originally Posted by Noss*
Посмотреть сообщение
I don't really understand why someone would want a anti swear.The game is from 18 Years and over anyways.It's not like anyone should be offended on the game.
True, but we can censor words like, Justin, Bieber, etcc


Re: AntiSwear - Featuring 22 languages!! - Sinner - 05.12.2010

Quote:
Originally Posted by Zh3r0
Посмотреть сообщение
True, but we can censor words like, Justin, Bieber, etcc
The english parts has some anti-advertisement and anti-email spam. It doesn't have to be all ant-swear, this thing can have many uses.


Re: AntiSwear - Featuring 22 languages!! - Dex007HLH - 05.12.2010

Quote:
Originally Posted by Sinner
Посмотреть сообщение
[B][CENTER]
• Spanish (original and South-African)
Hummm,,
South African? no one speaks spanish there men, and there are not differences with the original spanish (from spain) and the south american one , just the accent change.
fix it now , south africa no one speaks spanish!

PD: i can help you with some words in spanish, is my native languague here you have some.

- perra (bitch)
- marica/maricon (is like bitch too)
- hijo de puta (son of a bitch)
- hijoeputa (son of a bitch too)
- puta (whore)
- prostituta (whore)
- weon (stupid in chile)
- boludo (stupid in argentina)
- retrasado (retarded)
- culiao ( fucker )
- culeado ( fucked)
- culero ( fucker in mexico )
- chingon ( IDK but is a insult in mex)
- coсo (vagina)
- pico (penis)
- pene (penis)
- bolas (balls)
- nationalist insults like:
- peruca (peru)
- gallego (spain)
- sudaca ( south american people )
- chilote (chile)
- argento (argentina)
- ecutatio (ecuator)
- colodrogo (colombia)
- venefolleta (venezuela)


that's all, (:


Re: AntiSwear - Featuring 22 languages!! - _[HuN]_Epsilon_ - 05.12.2010

Hungarian translate fucked up


Re: AntiSwear - Featuring 22 languages!! - Mujib - 05.12.2010

Quote:
Originally Posted by Noss*
Посмотреть сообщение
I don't really understand why someone would want a anti swear.The game is from 18 Years and over anyways.It's not like anyone should be offended on the game.
There are many players lower than the age of 18.


Re: AntiSwear - Featuring 22 languages!! - Den_Deluxe - 05.12.2010

THANK YOU A LOT :P


Re: AntiSwear - Featuring 22 languages!! - willsuckformoney - 05.12.2010

You can just have all of them curse words put into some .txt file in scriptfiles and have it read through the script. Good job too! Now when someone uses it they can't get cursed in foreign language. +1


Re: AntiSwear - Featuring 22 languages!! - Finn - 05.12.2010

Quote:
Originally Posted by willsuckformoney
Посмотреть сообщение
You can just have all of them curse words put into some .txt file in scriptfiles and have it read through the script. Good job too! Now when someone uses it they can't get cursed in foreign language. +1
The best way would be to let players add the curse words in the list.

First the word goes to a file which contains the words that are pending (waiting for admins to handle them), then admins accept the word and it gets added to the main file.

This way the database of curse words stays updated, meaning if some word has been left out, it can be added without trouble (and without script update).


Re: AntiSwear - Featuring 22 languages!! - Sinner - 05.12.2010

Quote:
Originally Posted by Finn
Посмотреть сообщение
The best way would be to let players add the curse words in the list.

First the word goes to a file which contains the words that are pending (waiting for admins to handle them), then admins accept the word and it gets added to the main file.

This way the database of curse words stays updated, meaning if some word has been left out, it can be added without trouble (and without script update).
You just summed up v2


Re: AntiSwear - Featuring 22 languages!! - gimini - 05.12.2010

Код:
// RUSSIAN
new swear[][MAX_WORD_LEN] =
{
        {"Sooka"},{"Yob"},{"khui"},{"zhopu"},
        {"ebut"},{"podmakhivai"},{"Chortoo"},{"kooshite"},{"balshoy"},
        {"syot"},{"khuy"},{"ebees"},{"tvoyu"},{"govno"},{"bliad"},
        {"Khui"},{"pizda"},{"manda"},{"zhopa"},{"sraka"},
        {"mudak"},{"govniuk"},{"Khuyesos"},{"zaebal"}
};
Weird list.


Re: AntiSwear - Featuring 22 languages!! - Sinner - 05.12.2010

Quote:
Originally Posted by gimini
Посмотреть сообщение
Код:
// RUSSIAN
new swear[][MAX_WORD_LEN] =
{
        {"Sooka"},{"Yob"},{"khui"},{"zhopu"},
        {"ebut"},{"podmakhivai"},{"Chortoo"},{"kooshite"},{"balshoy"},
        {"syot"},{"khuy"},{"ebees"},{"tvoyu"},{"govno"},{"bliad"},
        {"Khui"},{"pizda"},{"manda"},{"zhopa"},{"sraka"},
        {"mudak"},{"govniuk"},{"Khuyesos"},{"zaebal"}
};
Weird list.
I don't have Russian characters on my keyboard I'm afraid.


Re: AntiSwear - Featuring 22 languages!! - DiDok - 05.12.2010

jeze (WTF?)
jakiemus (the closest is "some", should be jakiemuś)
dresowi (closest is "hooligan")
idiota ("idiot", not considered swear)
laske (wider used as "chick" not as robić laskę "give a blowjob")
"krГіtka" (WTF2?),
konski ("horse's", should be koński),
reczny (means "handbrake" or "handmade" or "hand-operated" mostly, could be "wanking" too but come on!, should be ręczny)

are not swear words + many of them needs proper declension and conjugation to be effective It'd be better if you got the wordlists from some community members not from hell knows where as they know the language and how f***ed up is it so it won't have mistakes like this...


Re: AntiSwear - Featuring 22 languages!! - aco_SRBIJA - 06.12.2010

U are fails at serbian.

Код:
#
// SERBIAN
#
new swear[][MAX_WORD_LEN] =
#
{
#
        {"stoko"},
#
        {"Popusis"},
#
        {"Peecko"},
#
        {"GovnoPeechka"},
#
        {"Sranje"},
#
        {"Yebachu"},
#
        {"sunce"},
#
        {"Ilija"},
#
        {"Papa"},
#
        {"Govedo"},
#
        {"Sisadzijo"},
#
        {"usta"},
#
        {"oko"}
#
};
stoko is ok
Popusis is ok, but word "pusi ga" is used more
Peecko dont exist in serbian. right word for it is Picko
GovnoPeechka - just put Govno
Sranje - ok
Yebachu - "jebacu"
Sunce - its Sun
Ilija - its an serbian name
Papa - On russian, its a Dad, but on serbian, it dont have meaning
Govedo Ok
Sisadzijo - its unused, but ok
usta - mouth
oko - eye

My advice to add:
Budalo, svinjo, Bem ti, dupe, sise, seks, kurac, itd....All of this is flames word...


Re: AntiSwear - Featuring 22 languages!! - Flyfishes - 06.12.2010

Add "fitta" to the list! It's Swedish and means like "Pussy" or "cunt"

Nice job, mate!


Re: AntiSwear - Featuring 22 languages!! - Basicz - 06.12.2010

Thank you! I like the Indonesian.