SA-MP/server/playerpool.cpp
RD42 05c50379c2 [server] Implement CPlayerPool destructor
* Add CPlayerPool::Delete() stub
2023-12-13 23:58:15 +08:00

33 lines
680 B
C++

#include "main.h"
extern CNetGame *pNetGame;
CPlayerPool::CPlayerPool()
{
for(PLAYERID playerId = 0; playerId < MAX_PLAYERS; playerId++) {
m_bPlayerSlotState[playerId] = FALSE;
field_2599C[playerId] = 0;
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;
}