[2.0.7] Forward update and ban time saving on unload (2.0.7 Beta 1)
Pre-release
Pre-release
THIS IS A PRE-RELEASE
Those changes are experimental and could cause issues. More testing is advised.
- Updated the
CTBan_OnClientBan_Offline
forward prototype to support the ban duration in minutes as well as the reason. This change shouldn't break other plugins that use the old prototype of this forward, but more testing is required. Please contact me in case it worked (or didn't work) for you.- New prototype:
forward void CTBan_OnClientBan_Offline(char[] sAuthID, int iAdmin, int iMinutes, const char[] sReason);
- New prototype:
- Added ban time left saving when the plugin is unloaded mid-game: clients with a temporary ctban should now have their time properly updated to the database when the plugin is unloaded mid-game. Before, it would only save the ban time left when a client disconnected.
- This change is experimental and may cause short freezes if you unload the plugin mid-game. If you notice any long freeze, please contact me.