mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-19 20:26:14 +08:00
[bot] Implement CNetGame::ResetPlayerPool()
This commit is contained in:
@ -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)
|
void CNetGame::sub_415EA0(PLAYERID playerId, BOOL a2)
|
||||||
{
|
{
|
||||||
if(playerId < MAX_PLAYERS)
|
if(playerId < MAX_PLAYERS)
|
||||||
|
@ -75,6 +75,7 @@ public:
|
|||||||
void Init(PCHAR szHostOrIp,int iPort,PCHAR szPlayerName,PCHAR szPass,PCHAR szNpcMode);
|
void Init(PCHAR szHostOrIp,int iPort,PCHAR szPlayerName,PCHAR szPass,PCHAR szNpcMode);
|
||||||
void Process();
|
void Process();
|
||||||
void ResetVehiclePool();
|
void ResetVehiclePool();
|
||||||
|
void ResetPlayerPool();
|
||||||
void ShutdownForGameModeRestart();
|
void ShutdownForGameModeRestart();
|
||||||
|
|
||||||
void sub_415EA0(PLAYERID playerId, BOOL a2);
|
void sub_415EA0(PLAYERID playerId, BOOL a2);
|
||||||
|
Reference in New Issue
Block a user