Like "/stereo"
Any function prefixed with "serverCmd" will make it a server command. It also is always sent the client who typed the command as the first argument.
For example:
function serverCmdMakeMeBad(%client)
{
%client.makemebad = 1;
}
Would be called if the player typed
/makeMeBad
You can also add other arguments to the function which is how you do more complex server commands.
Again, for example:
function serverCmdMakeMeSomething(%client, %emotion)
{
if(%emotion $= "bad")
{
%client.makemebad = 1;
}
else
{
%client.makemebad = 0;
}
}
So now, you'd be typing
/makemesomething bad