When players disconnect this event is also fired. Since the player is no longer on the server, GetClientOfUserId fails to return a valid client - meaning it will return "0". As the client ID 0 is "console", it should be ignored in code that handles existing clients.
When players disconnect this event is also fired. Since the player is no longer on the server, GetClientOfUserId fails to return a valid client - meaning it will return "0". As the client ID 0 is "console", it should be ignored in code that handles existing clients.