Blockland Forums > Modification Help

Creating a /command [parameter]

Pages: (1/2) > >>

Daenth:

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?

otto-san:

serverCmdFunctionname?

Desolation:


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

--- End code ---

/Test SomethingHere

Iban:

https://docs.google.com/document/d/1tXmE2ZlJumfQDZAeN74H8fsu-OYwkT8FzQYPGhbWXzA/edit?hl=en

Further Reading:
http://forum.blockland.us/index.php?topic=146136.0

Greek2me:

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

Pages: (1/2) > >>

Go to full version