[FilterScript] Basic Word Filter - 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] Basic Word Filter (
/showthread.php?tid=234282)
Basic Word Filter -
vital2k - 03.03.2011
Word Filter
I was bored so I decided to create this very basic word filter. The filter is controlled player-side.
Commands
Players can enable and disable the filter with the "/wfilter" command which toggles it off and on. By default the filter is off.
What does it do?
The filter will blank out words provided in the filterscript. Such as the word "crap" could become "c**p". Although the game is meant for 18+ some people simply don't like swearing words. Other words such as communities you don't want mentioned could also be blanked out by editing the script.
Download
SendSpace - File includes .pwn and .amx
PasteBin
Re: Basic Word Filter -
wheelman_WM - 03.03.2011
What will it do ?
Re: Basic Word Filter -
Markx - 03.03.2011
What is this?
Re: Basic Word Filter -
vital2k - 03.03.2011
Alright I edited the first post.
Re: Basic Word Filter -
Nexotronix - 03.03.2011
Cool, Real useful!
i like it !
Re: Basic Word Filter -
ilikenuts - 03.03.2011
Quote:
Originally Posted by wheelman_WM
What will it do ?
|
Read The Whole Post Care Fully then dont ask!
Re: Basic Word Filter -
vital2k - 03.03.2011
Quote:
Originally Posted by ilikenuts
|
No my bad, I had to edit my post as it didn't explain properly.
Re: Basic Word Filter -
ilikenuts - 03.03.2011
Quote:
Originally Posted by vital2k
No my bad, I had to edit my post as it didn't explain properly.
|
But you typed "What Does it do?" With Big Font!!!
Re: Basic Word Filter -
vital2k - 03.03.2011
But my post wasn't like that when he asked. I had to edit my post and add it.
Re: Basic Word Filter -
Infamous - 03.03.2011
That's useful mate, may use this. gj
Re: Basic Word Filter -
aNdReSk - 03.04.2012
Can u replace words for longer words?
Example:
I say "one" replace for "dinosaur"
Re: Basic Word Filter -
VenomXNL - 11.04.2012
Hi nice script/sample,
The only thing i would recommend changing is:
Old code:
pawn Код:
new result = strfind(text, badwords[badword], false);
to
New code:
pawn Код:
new result = strfind(text, badwords[badword], true);
If you change this little boolean value, then when you blocked the word 'stupid' then
it would also filter it when players type StUPid or Stupid etc you'll get the point
If you leave it the way it is then it would not filter words when capitals are used.
Hope you can do someting with my info
Anyway's good code and keep up the good work.
Greetings,
VenomXNL