SA-MP/server/playerpool.cpp

33 lines
682 B
C++
Raw Normal View History

#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;
m_iPoolSize = 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;
}