There are a few differences.
#w is filtered out by the server. Using the function remotesay(....) to be more precise. remoteSay usually then sends the commands to the client to say what you want to say.
For taurik's script like !rpg it gets a bit more complicated. If you don't have presto then do this. If you want to block a message coming in from the server you would use this function *usually found in client...so anything executed by autoexec should override it*
function onClientMessage(%clientId, %msg)
{
if(String::findsubstr(%msg, "ignore") != -1)
return false; //Message blocked (if the word ignore is found)
return true;
}
For presto you would do something like this
Event::Attach(eventClientMessage, NewonClientMessage);
function NewonClientMessage(%clientId, %msg)
{
if(String::findsubstr(%msg, "ignore") != -1)
return false; //Not entirely sure this works the same in presto
return true;
}
To block a message before you say it use function
function say(%channel, %message)
{
//%channel is 0, or 1 if I remember correctly...0 being say and 1 being team? not sure which.
//If you return before calling the remoteeval the server will not see the message
remoteEval(2048, say, %channel, %message);
}
I am not sure if presto has an attachment event on this....it is up to you to look through it if you do....I hate presto