[FilterScript] Anti-Swear System. - 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] Anti-Swear System. (
/showthread.php?tid=557678)
Anti-Swear System. -
HY - 14.01.2015
Introduction:
Hello,
I want to release, today, my Filterscript, an simple Anti-Swear system.
Editing:
You can edit filterscript how you like it.
1. Max. Advertisments.
pawn Код:
#define MAX_ADVERTISMENTS 3
/*
3 = The max. advertisments. You can edit it.
For example. If you make MAX_ADVERTISMENTS to 5, then he needs to get 5 advertisments to get kicked.
You can find this line, in script.
Line: 5.
*/
2. Adding more words.
pawn Код:
new InvalidWords[][100] =
{
"idiot",
"stupid",
"fuck",
"ass",
"lick",
"suck",
"dick",
"pussy",
"cum",
"sperm",
"gay"
};
/*
Here you can add more forbidden words.
Continue list with your forbidden words.
Line: 13-26;
REMEMBER: The last stanza, doesn't have a comma. ",".
*/
Download:
- www.pastebin.com; (Source Code)
- www.solidfiles.com; (Source Code + AMX File)
Re: Anti-Swear System. - Diti1 - 14.01.2015
Nice one Bro Kep it up
Re: Anti-Swear System. -
Skully82 - 14.01.2015
Awesome..
+REP
Rep me back if you want
Re: Anti-Swear System. -
HY - 15.01.2015
Quote:
Originally Posted by Diti1
Nice one Bro Kep it up
|
Quote:
Originally Posted by Skully82
Awesome..
+REP
Rep me back if you want
|
Thanks.
Re: Anti-Swear System. -
PaulDinam - 15.01.2015
Why would you make a global variable for the warwarnings. What if one uses three bad words it will kick every single player! You should not make a timer for this as you can simply add a condition under OnPlayerText. Good job nevertheless.
Re: Anti-Swear System. -
s3rious - 15.01.2015
What happend if i type suuck or fuuck... ? It will not give me warning about that i am naughty boy
Re: Anti-Swear System. -
HY - 15.01.2015
Quote:
Originally Posted by s3rious
What happend if i type suuck or fuuck... ? It will not give me warning about that i am naughty boy
|
That's your job.
You can add how many words you want in array.
Re: Anti-Swear System. -
Abagail - 15.01.2015
You should stop releasing such redundant code. Not to mention that this will only stop swearing within OnPlayerText, nowhere else. Concentrate on making one thing, instead of releasing small(possibly untested) scripts every day.
AW: Anti-Swear System. -
Mellnik - 15.01.2015
What if you get into some really horny situation on an RP server where you would like to shout "Fuck her right in the pussy" but you can't, just because of your InvalidWords array
.
Seriously, Anti-Swear system are useless like government banning websites. You can easily bypass them. Furthermore this script induces unnecessary string operations overhead in your OnPlayerText callback.
Simply put a "This server is 18+" textdraw to fulfill SA-MP's terms of service.
Re: AW: Anti-Swear System. -
s3rious - 16.01.2015
Quote:
Originally Posted by Mellnik
What if you get into some really horny situation on an RP server where you would like to shout "Fuck her right in the pussy" but you can't, just because of your InvalidWords array .
Seriously, Anti-Swear system are useless like government banning websites. You can easily bypass them. Furthermore this script induces unnecessary string operations overhead in your OnPlayerText callback.
Simply put a "This server is 18+" textdraw to fulfill SA-MP's terms of service.
|
Exactly man. San Andreas (as game) is already 18+ so there is not reason to give swear protection because CJ is swearing as well