how to remove the plugin a bind at the player when he comes out from the server?
OnPlayerDisconnected hook does not solve the problem.
Solved Removing a key bind on disconnect?
Discussion in 'Rust Development' started by Marat 2, Aug 8, 2016.
-
Wulf Community Admin
OnPlayerDisconnected would work fine, but if they disconnect other than via the "Disconnect" button, that won't be triggered on their client. Key binds are something that should not be messed with much because of that.
-
maybe my removal method I use is not the right hook for OnPlayerDisconnected?
player.Command("bind c \"\"");
[DOUBLEPOST=1470666529][/DOUBLEPOST]okay. I guess it not so important)) -
Wulf Community Admin
-
You shouldn't change client config settings from the server, especially when you can't assure that they don't persist across different servers.
-
-
Is there a way to send a keypress via player.Command ?
-
player.Command ( "bind" + keybind + "СommandMenu"); -