Alright, so I have been working on a project were when you say a word, it replaces that word with another character.
For example, the swear filter that is built in. If I said a "forbidden" word, it would be blocked with "*"s.
Heres a Small example on how it would "Catch" the word, but I need it to delete the entire message so it would be like the user never said it.
package SwearFilter
{
function serverCmdmessagesent(%client, %text)
{
if(strstr(%text, "Theword") >= 0)
messageClient(%client, '', "\c6Do not say that.");
parent::servercmdMessagesent(%client, %text);
}
};
activatePackage(Swearfilter);
Im sure this is possible. Can anyone help?