package noTimescale {
function serverCmdTimeScale(%client, %scale) {
}
};
activatePackage(noTimescale);
You might want to make it at least host-only or somtehing, which you can do like this:
package noTimescaleExceptHost {
function serverCmdTimeScale(%client, %scale) {
if(%client.BL_ID != getNumKeyID())
return;
parent::serverCmdTimeScale(%client, %scale);
}
};
activatePackage(noTimescaleExceptHost);
You can make it super-admin only by changing the line that starts with "if" to if(!%client.isSuperAdmin).
I'm not trying to spoon feed you working code but what you're asking for is too basic to explain in a useful way that isn't just code translated to english.
Whenever you type /anything it will call serverCmdAnything on the server. It doesn't call serverCmdMessageSent. The arguments for that function are (%client, %all, %words, %after, %the, %function, %name). When you overwrite a function inside a package, to make it do its default behavior you use parent::theFunctionNameHere(%the, %arguments, %here). Since you don't want it to do the default behavior (change the timescale) you just leave this out. If you want it to do the default behavior under some condition, use an if statement and if it's true call the function. In this case I had it exit the function if it's true (with a return;) and run the function if it's false. Same thing.