set a task from plugin_init which will execute few seconds later from plugin initialization and setting a global value true. then depending on that check execute proper code from client_connect/client_putinserver.
Correct ?
Yes. That is the second [less reliable] method that I described before.