1.1 --- a/core/CPlayerManager.h Thu Feb 08 21:41:28 2007 +0000
1.2 +++ b/core/CPlayerManager.h Fri Feb 09 01:08:59 2007 +0000
1.3 @@ -19,6 +19,7 @@
1.4 #include "sourcemm_api.h"
1.5 #include <IForwardSys.h>
1.6 #include <IPlayerHelpers.h>
1.7 +#include <IAdminSystem.h>
1.8 #include <sh_string.h>
1.9 #include <sh_list.h>
1.10 #include <sh_vector.h>
1.11 @@ -39,12 +40,15 @@
1.12 bool IsConnected() const;
1.13 bool IsAuthorized() const;
1.14 bool IsFakeClient() const;
1.15 + void SetAdminId(AdminId id, bool temporary);
1.16 + AdminId GetAdminId() const;
1.17 private:
1.18 void Initialize(const char *name, const char *ip, edict_t *pEntity);
1.19 void Connect();
1.20 void Authorize(const char *steamid);
1.21 void Disconnect();
1.22 void SetName(const char *name);
1.23 + void DumpAdmin(bool deleting);
1.24 private:
1.25 bool m_IsConnected;
1.26 bool m_IsInGame;
1.27 @@ -52,6 +56,8 @@
1.28 String m_Name;
1.29 String m_Ip;
1.30 String m_AuthID;
1.31 + AdminId m_Admin;
1.32 + bool m_TempAdmin;
1.33 edict_t *m_pEdict;
1.34 };
1.35
1.36 @@ -68,6 +74,8 @@
1.37 public:
1.38 CPlayer *GetPlayerByIndex(int client) const;
1.39 void RunAuthChecks();
1.40 + void ClearAdminId(AdminId id);
1.41 + void ClearAllAdmins();
1.42 public:
1.43 bool OnClientConnect(edict_t *pEntity, const char *pszName, const char *pszAddress, char *reject, int maxrejectlen);
1.44 bool OnClientConnect_Post(edict_t *pEntity, const char *pszName, const char *pszAddress, char *reject, int maxrejectlen);