• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 1.X

Itutorial

Board Moderator
Staff member
Board Moderator
Joined
Dec 23, 2014
Messages
2,462
Solutions
68
Reaction score
1,129
I want to add a filter system to my server so players cannot use offensive language.

I have a basic system now but I am wondering how to make the script check for the words in the whole sentence. So if the words filtered are said at all in a sentence it will filter the word.

Can someone please help me with this script.
 
I want to add a filter system to my server so players cannot use offensive language.

I have a basic system now but I am wondering how to make the script check for the words in the whole sentence. So if the words filtered are said at all in a sentence it will filter the word.

Can someone please help me with this script.
Post the script and we'll edit it.
 
@Codex NG lol okay...

Code:
function onSay(player, words, param)
    doCreatureSay(player, "Filter Enabled.", 1, getCreaturePosition(player))
    return false
end
 
@Codex NG lol okay...

Code:
function onSay(player, words, param)
    doCreatureSay(player, "Filter Enabled.", 1, getCreaturePosition(player))
    return false
end
tfs 1x would be like this
Code:
function onSay(player, words, param)
   player:say("Filter Enabled.", 1, TALKTYPE_MONSTER_SAY)
    return false
end
 
Back
Top