Put the bind in a config file; execute the config file on the player when they are either in a team for the first time (it wont work onPlayerConnect), or when they spawn. Put the config file either on your server in raw format, or put it in your IWD file.
This is the config file I use to bind keys:
Code:
bind I "openScriptMenu clientcmd ibutton"
bind L "openScriptMenu clientcmd lbutton"
bind M "openScriptMenu clientcmd mbutton"
bind K "openScriptMenu clientcmd kbutton"
I name the config file "custombuttons.cfg".
This is the code I use to execute the config file:
Code:
setUpButtons()
{
self ExecClientCommand( "exec custombuttons.cfg" );
}