SA-MP/server/playerpool.h

53 lines
1.1 KiB
C
Raw Normal View History

2023-10-29 22:26:43 +08:00
#ifndef SAMPSRV_PLAYERPOOL_H
#define SAMPSRV_PLAYERPOOL_H
// TODO: PLAYER_SPAWN_INFO
typedef struct _PLAYER_SPAWN_INFO // size: 46
{
char _gap0[46];
} PLAYER_SPAWN_INFO;
class CPlayerPool // size: WL 199024
{
private:
int m_iVirtualWorld[MAX_PLAYERS];
int field_FA0;
int field_FA4;
int field_FA8;
int m_iPlayerScore[MAX_PLAYERS];
int m_iPlayerMoney[MAX_PLAYERS];
int m_iPlayerDrunkLevel[MAX_PLAYERS];
DWORD field_3E8C[1000];
CHAR m_szPlayerClientID[MAX_PLAYERS][101];
CHAR m_szPlayerVersion[MAX_PLAYERS][25];
int field_23A5C[MAX_PLAYERS];
BOOL m_bPlayerSlotState[MAX_PLAYERS];
CPlayer *m_pPlayers[MAX_PLAYERS];
CHAR m_szPlayerName[MAX_PLAYERS][MAX_PLAYER_NAME+1];
BOOL m_bIsAnAdmin[MAX_PLAYERS];
BOOL m_bIsAnNPC[MAX_PLAYERS];
char _gap2CAE4[8000];
int field_30964;
int field_30968;
int field_3096C;
public:
CPlayerPool();
~CPlayerPool();
BOOL Delete(PLAYERID playerId, BYTE byteReason);
void ResetPlayerScoresAndMoney() {
memset(&m_iPlayerScore[0],0,sizeof(int) * MAX_PLAYERS);
memset(&m_iPlayerMoney[0],0,sizeof(int) * MAX_PLAYERS);
memset(&m_iVirtualWorld[0],0,sizeof(int) * MAX_PLAYERS);
}
2023-10-29 22:26:43 +08:00
};
#endif