I have a situation that calls for saving data at the end of a map, but before all the clients are disconnected. OnMapEnd() occurs too late for this. The reason I need to do this is because I am incrementing a counter on OnClientDisconnect() and I want to ignore those disconnects due to a map change.
I've searched these forums for a while and haven't found a satisfactory solution to this specific situation.
The only thing I can think of is to take into account all the possible things that can lead to a map ending (time limit, round limit, admin change, vote, changelevel) and hooking them all to set a variable. Or is there a single point of attack for this?
Has anyone solved this problem before? Any help would be appreciated.