View Single Post
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 11-17-2017 , 22:07   Re: [L4D2]Ask for help
Reply With Quote #3

Quote:
Originally Posted by midnight9 View Post
Maybe because not always OnClientDisconnect is being called when client leaves and that results Client Count having wrong value after a while.
Maybe its worth trying reset the Client Count, OnMapStart or something like that
Yeah, and maybe OnMapStart there should be a check for client count. Looking at the source code, it just seems like the plugin only adds to the current client count when a player connects but, as you said, the value isn't always being reduced since OnClientDisconnect isn't being called all the time. This could happen when a client leaves during map transition or campaign change.
__________________
Psyk0tik is offline