Example for binding commands?Solved
Does anyone have knowledge about how to bind /remove ... and /spawn ... to a key?
We once tried that but it only lasted til restart of the server or maybe restart of our own games.
bind k "chat.say /remove"

I'll be the same across all chat commands, with any plugin. Binds are handled client-side, so the server has nothing to do with them.
writecfg to save it
Ok. Will try this. Thanx.

Merged post

Aaah now I remember what the problem was.
Those bindings dont accept empty spaces like in "spawn copter".
Guess I will have to rewrite the commands in the plugin to e.g. "spawncopter" to get it to work.
Kleementin
Ok. Will try this. Thanx.

Merged post

Aaah now I remember what the problem was.
Those bindings dont accept empty spaces like in "spawn copter".
Guess I will have to rewrite the commands in the plugin to e.g. "spawncopter" to get it to work.

They do work with spaces.

bind k "chat.say \"/spawn copter\""

or

bind k "chat.say {/spawn copter}"

Both should work.

In both cases I get {/spawn in chat and it won't spawn the copter.
If I type the first option with 2 quotes at the end I get "/spawn in chat.

Merged post

Tried it with bind k chat.say "/spawn copter"\ which worked but now I have the same problem that after a restart of the game I only get "spawn in the chat also. Yes, I did writecfg after typing the command in the console.

Merged post

If this STEAM thread is still up to date there is no way to ensure a bind of a command with a space in between will work after a restart of the game.
It seems you always have to bind it every time again. https://steamcommunity.com/app/252490/discussions/0/405694115202819031/?ctp=2
Locked automatically