[server] Implement CPlayerPool contructor

This commit is contained in:
RD42 2023-11-22 23:38:00 +08:00
parent e661820274
commit 4a2c40731d
3 changed files with 42 additions and 1 deletions

View File

@ -58,6 +58,9 @@
// amx
#include "amx/amx.h"
// SA-MP
typedef unsigned short PLAYERID;
#include "console.h"
#include "scrhttps.h"
#include "scrtimers.h"

View File

@ -0,0 +1,18 @@
#include "main.h"
CPlayerPool::CPlayerPool()
{
for(PLAYERID PlayerID = 0; PlayerID < MAX_PLAYERS; PlayerID++) {
m_bPlayerSlotState[PlayerID] = FALSE;
field_2599C[PlayerID] = 0;
field_23A5C[PlayerID] = 0;
field_3E8C[PlayerID] = pNetGame->GetTime();
}
field_30964 = 0;
field_30968 = 0;
field_FA0 = pNetGame->GetTime();
field_FA4 = 0;
field_FA8 = 0;
field_3096C = 0;
}

View File

@ -11,7 +11,27 @@ typedef struct _PLAYER_SPAWN_INFO // size: 46
class CPlayerPool // size: WL 199024
{
private:
char _gap[199024];
int m_iVirtualWorld[MAX_PLAYERS];
int field_FA0;
int field_FA4;
int field_FA8;
int m_iPlayerScore[MAX_PLAYERS];
int m_iPlayerMoney[MAX_PLAYERS];
char gap2EEC[4000];
DWORD field_3E8C[1000];
int field_23A5C[1000];
BOOL m_bPlayerSlotState[MAX_PLAYERS];
int field_2599C[1000];
char gap2693C[41000];
int field_30964;
int field_30968;
int field_3096C;
public:
CPlayerPool();
};
#endif