mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-23 06:57:31 +08:00
33 lines
682 B
C++
33 lines
682 B
C++
|
|
#include "main.h"
|
|
extern CNetGame *pNetGame;
|
|
|
|
CPlayerPool::CPlayerPool()
|
|
{
|
|
for(PLAYERID playerId = 0; playerId < MAX_PLAYERS; playerId++) {
|
|
m_bPlayerSlotState[playerId] = FALSE;
|
|
m_pPlayers[playerId] = NULL;
|
|
field_23A5C[playerId] = 0;
|
|
field_3E8C[playerId] = pNetGame->GetTime();
|
|
}
|
|
field_30964 = 0;
|
|
field_30968 = 0;
|
|
field_FA0 = pNetGame->GetTime();
|
|
field_FA4 = 0;
|
|
field_FA8 = 0;
|
|
field_3096C = 0;
|
|
}
|
|
|
|
CPlayerPool::~CPlayerPool()
|
|
{
|
|
for(PLAYERID playerId = 0; playerId < MAX_PLAYERS; playerId++) {
|
|
Delete(playerId,0);
|
|
}
|
|
}
|
|
|
|
BOOL CPlayerPool::Delete(PLAYERID playerId, BYTE byteReason)
|
|
{
|
|
// TODO: CPlayerPool::Delete W .text:00466570 L .text:080D0A90
|
|
return FALSE;
|
|
}
|