SA-MP/saco/net/playerpool.cpp

21 lines
468 B
C++
Raw Normal View History

2024-02-06 22:20:05 +08:00
#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();
2024-02-06 22:20:05 +08:00
field_0 = 0;
field_22 = 0;
field_4 = 0;
field_2F3A = 0;
}
//----------------------------------------------------