Add OnClientSettingsChanged to IPlayerHelpers (bug 4812, r=fyren)
This commit is contained in:
parent
217670b54a
commit
a81567e2d6
@ -833,6 +833,17 @@ void PlayerManager::OnClientSettingsChanged(edict_t *pEntity)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* Notify Extensions */
|
||||||
|
List<IClientListener *>::iterator iter;
|
||||||
|
IClientListener *pListener = NULL;
|
||||||
|
for (iter=m_hooks.begin(); iter!=m_hooks.end(); iter++)
|
||||||
|
{
|
||||||
|
pListener = (*iter);
|
||||||
|
if (pListener->GetClientListenerVersion() >= 13)
|
||||||
|
{
|
||||||
|
pListener->OnClientSettingsChanged(client);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int PlayerManager::GetMaxClients()
|
int PlayerManager::GetMaxClients()
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
#include <IAdminSystem.h>
|
#include <IAdminSystem.h>
|
||||||
|
|
||||||
#define SMINTERFACE_PLAYERMANAGER_NAME "IPlayerManager"
|
#define SMINTERFACE_PLAYERMANAGER_NAME "IPlayerManager"
|
||||||
#define SMINTERFACE_PLAYERMANAGER_VERSION 12
|
#define SMINTERFACE_PLAYERMANAGER_VERSION 13
|
||||||
|
|
||||||
struct edict_t;
|
struct edict_t;
|
||||||
class IPlayerInfo;
|
class IPlayerInfo;
|
||||||
@ -347,6 +347,15 @@ namespace SourceMod
|
|||||||
virtual void OnMaxPlayersChanged(int newvalue)
|
virtual void OnMaxPlayersChanged(int newvalue)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Notifies the extension that a clients settings changed
|
||||||
|
*
|
||||||
|
* @param client Client index.
|
||||||
|
*/
|
||||||
|
virtual void OnClientSettingsChanged(int client)
|
||||||
|
{
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#define COMMAND_FILTER_ALIVE (1<<0) /**< Only allow alive players */
|
#define COMMAND_FILTER_ALIVE (1<<0) /**< Only allow alive players */
|
||||||
|
Loading…
Reference in New Issue
Block a user