Author Topic: How do you disable the /talkas command in BL?  (Read 1875 times)

I've looked in server preferences for awhile, and I can't find anything that relates to the /talkas command for Munk's Server Pack. Does anyone know how to disable it or make it host-only?
imaybedumbforaskingthis

why are you even using munk's server pack

you could make a new package that just overwrites the command

*not sure the exact text, but something like this
package ducks{servercommandtalkas(){}};enablepackage(ducks);
go check coding help for package syntax

This should do it.

package noTalkAs{function servercmdTalkAs(){return;}};activatepackage(noTalkAs);

right, cmd and not command
but I thought you could just leave the function blank?

Yeah, you could. I guess returning it is just better theory.

right, cmd and not command
but I thought you could just leave the function blank?
you're losing your touch phflack, do you still use that duck avatar anymore? It's been like 4 years.

Ingame avatar I meant.

I've been busy with java at work, haven't had much time to do some BL scripting
that and I've just been trying to make some minesweeper on badspot's server
and yes, the duck is still awesome

I should probably get back to coding my terrain generator, it kind of generates terrain, with a few bugs
but at least it does something :D

I've been busy with java at work
Why do you use java at work? Java is slow. C# is Microsoft's implementation of it and is a lot better on CPU.

because I know java well, and they're trying to move to java for their code
speed is not an issue

Why do you use java at work? Java is slow. C# is Microsoft's implementation of it and is a lot better on CPU.
Because:


Anyway, Munks server pack is abusive, so you better not use it at all.
If you do want to use it, you can delete the talkas command from the code.
Just open the ".cs" files in the addon folder and search for the words: "function ServerCmdtalkas"
Then delete everything between (and included):
Quote
function ServerCmdtalkas(...)
{
/code
}