1. clientCmds are commands that the server can tell the client to call
2. clientCmdChatMessage is the command for your client recieving a message
3. The command to send a chat message to the server is commandtoserver('messagesent','Your text here'); However...
4. slash commands are interpreted by the client, and turned into a commandtoserver call. "/deposit 99999" becomes commandtoserver('deposit','99999');
You'd want to do something like this
$remapDivision[$remapCount] = "AutoType";
$remapName[$remapCount] = "Deposit 99999";
$remapCmd[$remapCount] = "quickDeposit";
$remapCount++;
function quickDeposit()
{
commandtoserver('deposit',99999);
}
You're forgetting the boolean. This will call /deposit 99999 twice. Once when you push the key, once when you release it.
Because it's called by a key bind, the function will be called with a boolean variable(a variable that's either positive or negative) which will indicate if the key was pushed(positive) or released(negative).
Now we're making sure that the you're only calling /deposit 99999 when the key is pushed, and not released. You can change it to
if(!%bool) if you want it to be called when the key is released instead.
$remapDivision[$remapCount] = "AutoType";
$remapName[$remapCount] = "Deposit 99999";
$remapCmd[$remapCount] = "quickDeposit";
$remapCount++;
function quickDeposit(%bool)
{
if(%bool)
{
commandtoserver('deposit',99999);
}
}