Seems there's a bug in the latest SM 1.1 SVN.
Now the command itself, by typing it into the console, works fine, but it also says "unknown command sm_scrambleteams" at the same time.
I have it listed in the admin menu and this is where it does not work, at all, here's how it is in my admin menu:
Code:
"Commands"
{
"ServerCommands"
{
"Scramble Teams"
{
"cmd" "sm_scrambleteams"
"execute" "server"
"admin" "sm_ban"
}
}
}
When ran it complains about "Client index 0 is invalid" for PrintToChat at here in your code:
Code:
PrintToChat(client,"\x01\x04Scramble Teams has been initiated")
Funnily enough I noticed it doesn't print this out globally to all players on SM 1.1.0.2423 when done via the admin menu. I also have it in Custom Votes too and it does the same thing (I like keeping votes in one menu for my players).
It's no big deal because there was honestly nothing that was supremely major in the latest SVN so I can run 2423 and let it work still but I thought you'd want to know.
Also using MM:S 1.6.2, TF2, Windows Server