mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[bot] Implement CNetGame::ResetPlayerPool()
This commit is contained in:
parent
9a61b24a2f
commit
67790e55f5
@ -448,6 +448,16 @@ void CNetGame::ResetVehiclePool()
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
void CNetGame::ResetPlayerPool()
|
||||
{
|
||||
if(m_pPlayerPool) {
|
||||
delete m_pPlayerPool;
|
||||
}
|
||||
m_pPlayerPool = new CPlayerPool();
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
void CNetGame::sub_415EA0(PLAYERID playerId, BOOL a2)
|
||||
{
|
||||
if(playerId < MAX_PLAYERS)
|
||||
|
@ -75,6 +75,7 @@ public:
|
||||
void Init(PCHAR szHostOrIp,int iPort,PCHAR szPlayerName,PCHAR szPass,PCHAR szNpcMode);
|
||||
void Process();
|
||||
void ResetVehiclePool();
|
||||
void ResetPlayerPool();
|
||||
void ShutdownForGameModeRestart();
|
||||
|
||||
void sub_415EA0(PLAYERID playerId, BOOL a2);
|
||||
|
Loading…
Reference in New Issue
Block a user