Fix GetClientCount(false)

This commit is contained in:
BotoX
2023-08-30 22:08:46 +02:00
committed by Your Name
parent aa2a71fc67
commit ec3351a320
4 changed files with 50 additions and 15 deletions
+9 -2
View File
@@ -41,7 +41,7 @@
#include <IAdminSystem.h>
#define SMINTERFACE_PLAYERMANAGER_NAME "IPlayerManager"
#define SMINTERFACE_PLAYERMANAGER_VERSION 21
#define SMINTERFACE_PLAYERMANAGER_VERSION 22
struct edict_t;
class IPlayerInfo;
@@ -543,10 +543,17 @@ namespace SourceMod
/**
* @brief Returns the number of players currently connected.
*
* @return Current number of connected clients.
* @return Current number of connected players.
*/
virtual int GetNumPlayers() =0;
/**
* @brief Returns the number of clients currently connected.
*
* @return Current number of connected clients.
*/
virtual int GetNumClients() =0;
/**
* @brief Returns the client index by its userid.
*