Core now detects and handles a changed maxplayers value (bug 2537 and bug 2758)

This commit is contained in:
Matt Woodrow
2008-09-26 19:08:49 +12:00
parent 4517031861
commit f4dba84ae5
8 changed files with 162 additions and 8 deletions
+10 -1
View File
@@ -41,7 +41,7 @@
#include <IAdminSystem.h>
#define SMINTERFACE_PLAYERMANAGER_NAME "IPlayerManager"
#define SMINTERFACE_PLAYERMANAGER_VERSION 7
#define SMINTERFACE_PLAYERMANAGER_VERSION 8
struct edict_t;
class IPlayerInfo;
@@ -301,6 +301,15 @@ namespace SourceMod
virtual void OnClientPostAdminCheck(int client)
{
}
/**
* @brief Notifies the extension that the maxplayers value has changed
*
* @param newvalue New maxplayers value.
*/
virtual void OnMaxPlayersChanged(int newvalue)
{
}
};
#define COMMAND_FILTER_ALIVE (1<<0) /**< Only allow alive players */