SA-MP/saco/net/playerpool.cpp
RD42 3b45f9932c [saco] Implement CLocalPlayer ctor
* Updates CGame ctor
* Implements `CGame::FindPlayerPed()`
* Implements `CLocalPlayer::ResetAllSyncAttributes()`
* Updates CPlayerPool ctor
2024-02-15 22:41:04 +08:00

21 lines
468 B
C++

#include "../main.h"
//----------------------------------------------------
CPlayerPool::CPlayerPool()
{
// loop through and initialize all net players to null and slot states to false
for(PLAYERID playerId = 0; playerId < MAX_PLAYERS; playerId++) {
field_1F8A[playerId] = 0;
field_2A[playerId] = 0;
}
m_pLocalPlayer = new CLocalPlayer();
field_0 = 0;
field_22 = 0;
field_4 = 0;
field_2F3A = 0;
}
//----------------------------------------------------