Instead of relying on SourceMod's OnClientDisconnected to choose when to clear data, instead hook the
player_disconnect event, which only fires when the client actually disconnects. Having said that, you'll have to convert the userid to a client index if you're using it as an array key.
__________________