[FilterScript] Basic Word Filter
#1

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.
Код:
/wfilter
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
Reply
#2

What will it do ?
Reply
#3

What is this?
Reply
#4

Alright I edited the first post.
Reply
#5

Cool, Real useful!
i like it !
Reply
#6

Quote:
Originally Posted by wheelman_WM
Посмотреть сообщение
What will it do ?
Read The Whole Post Care Fully then dont ask!
Reply
#7

Quote:
Originally Posted by ilikenuts
Посмотреть сообщение
Read The Whole Post Care Fully then dont ask!
No my bad, I had to edit my post as it didn't explain properly.
Reply
#8

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!!!
Reply
#9

But my post wasn't like that when he asked. I had to edit my post and add it.
Reply
#10

That's useful mate, may use this. gj
Reply
#11

Can u replace words for longer words?
Example:

I say "one" replace for "dinosaur"
Reply
#12

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)