SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 05/12/2010, 02:18 PM   #1
Sinner
Gangsta
 
Sinner's Avatar
 
Join Date: Aug 2010
Location: On This Mortal Coil
Posts: 844
Reputation: 287
Default AntiSwear - Featuring 22 languages!!

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.
__________________
Please use the search feature before asking a question.

Last edited by Sinner; 09/05/2011 at 08:33 AM.
Sinner is offline   Reply With Quote
Old 05/12/2010, 02:25 PM   #2
gimini
Big Clucker
 
gimini's Avatar
 
Join Date: Sep 2009
Posts: 81
Reputation: 0
Default Re: AntiSwear - Featuring 22 languages!!

http://pastebin.com/ please, thanks.
__________________
[FilterScript] DropGun v1.3 - With saving! [UPDATED: 22.06.2011] (03.09.2011: After death dropping added)
gimini is offline   Reply With Quote
Old 05/12/2010, 02:26 PM   #3
TouR
Gangsta
 
TouR's Avatar
 
Join Date: Oct 2009
Location: Greece
Posts: 826
Reputation: 27
Default Re: AntiSwear - Featuring 22 languages!!

If you need some help with greek tell me, I am Greek so yeah i know many of them xD
TouR is offline   Reply With Quote
Old 05/12/2010, 02:27 PM   #4
Sinner
Gangsta
 
Sinner's Avatar
 
Join Date: Aug 2010
Location: On This Mortal Coil
Posts: 844
Reputation: 287
Default Re: AntiSwear - Featuring 22 languages!!

Quote:
Originally Posted by gimini View Post
http://pastebin.com/ please, thanks.
Done, thanks.
__________________
Please use the search feature before asking a question.
Sinner is offline   Reply With Quote
Old 05/12/2010, 02:28 PM   #5
Noss*
Huge Clucker
 
Noss*'s Avatar
 
Join Date: Jul 2010
Location: England,London
Posts: 429
Reputation: 3
Default Re: AntiSwear - Featuring 22 languages!!

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.
__________________
Noss* is offline   Reply With Quote
Old 05/12/2010, 02:33 PM   #6
Zh3r0
Godfather
 
Join Date: Mar 2008
Posts: 5,597
Reputation: 380
Default Re: AntiSwear - Featuring 22 languages!!

Quote:
Originally Posted by Noss* View Post
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
__________________
Zh3r0 is offline   Reply With Quote
Old 05/12/2010, 02:35 PM   #7
Sinner
Gangsta
 
Sinner's Avatar
 
Join Date: Aug 2010
Location: On This Mortal Coil
Posts: 844
Reputation: 287
Default Re: AntiSwear - Featuring 22 languages!!

Quote:
Originally Posted by Zh3r0 View Post
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.
__________________
Please use the search feature before asking a question.
Sinner is offline   Reply With Quote
Old 05/12/2010, 03:21 PM   #8
Dex007HLH
Big Clucker
 
Dex007HLH's Avatar
 
Join Date: Nov 2010
Location: Somewhere infront of a computer.
Posts: 134
Reputation: 2
Default Re: AntiSwear - Featuring 22 languages!!

Quote:
Originally Posted by Sinner View Post
[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, (:
__________________
This signature was made in 5.706 seconds
Dex007HLH is offline   Reply With Quote
Old 05/12/2010, 04:03 PM   #9
_[HuN]_Epsilon_
Huge Clucker
 
Join Date: Apr 2009
Location: Behind You!
Posts: 289
Reputation: 9
Default Re: AntiSwear - Featuring 22 languages!!

Hungarian translate fucked up
_[HuN]_Epsilon_ is offline   Reply With Quote
Old 05/12/2010, 04:10 PM   #10
Mujib
Gangsta
 
Join Date: Jan 2009
Location: Amsterdam
Posts: 538
Reputation: 34
Default Re: AntiSwear - Featuring 22 languages!!

Quote:
Originally Posted by Noss* View Post
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.
Mujib is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [FS] ZAdmin v1.0 | ADMIN SYSTEM + REGISTER + ANTICHEAT + ANTIFLOOD + ANTISWEAR. [ZFM]Zuc Filterscripts 24 25/05/2011 09:19 AM
/ban on 3 languages mariokumanovac Help Archive 4 08/03/2011 11:23 AM
Learning other languages. Striker_Moe Everything and Nothing 32 20/12/2009 09:25 PM
[FilterScript] [FS] antiswear-antiflood-antiadvertise script felixr Filterscripts 2 27/07/2009 09:38 PM
Other Languages basker Help Archive 3 27/06/2009 11:34 AM


All times are GMT. The time now is 09:32 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.