How can a client affect a replicated variable?

I think I understood how to setup this kind of stuff, mainly due to this post.

Short version: client should always request the server to change stuff. The server can then check things up, set a replicated variable, and client can react to that using a rep notify.