Disable input for all players in multiplayer

I try that but it work only for the clients and not for the server : /