well.. i don't found some script for do it then i modif one to work on tfs.. Don't know who do it ..
it filter "bad" words of players with GroupId < 3.. you can modif it if you want...
add this in data/talkactions/talkactions.xml
goto data/talkactions/scripts/
create a file filter.lua
^_^
it filter "bad" words of players with GroupId < 3.. you can modif it if you want...
add this in data/talkactions/talkactions.xml
Code:
<talkaction words="fuck" script="filter.lua" />
<talkaction words="dick" script="filter.lua" />
<talkaction words="bitch" script="filter.lua" />
create a file filter.lua
Code:
function onSay(cid, words, param)
if getPlayerGroupId(cid) < 3 then
local text = {'I love you!','i\'m a fag.','You are so nice!'}
local chance = math.random(1, table.getn(text))
doCreatureSay(cid, text[chance] ,1)
else
return TRUE
end
end
^_^
Last edited: