It took me a whole week to test and track down the culprit behind what I could call the server freezing. It does this at round end, right when it goes to change maps due to mapcycle. For some reason, it doesn't cause a crash, but a freeze. Where the server uses 100% of the cpu core it's on, and the FPS of the server does not change. Can't do anything but force exit and restart.
There were no crash dumps or error logs each time.
The code uses sdkhooks PreThink, and here is pretty much the only code in it:
Perhaps a conflict? Maybe, but even then, why not at plugin start, why at mapchange due to round end?
Note: This does not occur on normal mapchange, only when it changes maps due to round end with compliance to mapcycle.
I was thinking of hooking round end and round start, and disabling the plugin's functionality at round end and then enabling it at round start as a workaround.
One more thing; which is better, for (new client=1;client<=MaxClients;client++)
or for (new client=0;client<=MaxClients;client++)
EDIT: I used a workaround to disable to functionality at round end, this fixes it. But I still wanna know about the new client=0/1 thing.
__________________