Author Topic: Creating a /command [parameter]  (Read 667 times)

Title pretty much sums it up. I want to create a command that is like /command [parameter]. But I have no idea how to. =/
Could anyone show me or link me to a page that lists how to do it?

serverCmdFunctionname?

Code: [Select]
function serverCmdTest(%client,%num)
{
echo(%client SPC " said " SPC %num);
}

/Test SomethingHere


The parameters in /commands are the arguements in serverCmd functions, starting at the second arguement. The first arguement in the client.

Code: [Select]
function serverCmdCommand(%client,%a,%b,%c)