mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-19 20:26:14 +08:00
[server] Implement CPlayerPool contructor
This commit is contained in:
@ -58,6 +58,9 @@
|
|||||||
// amx
|
// amx
|
||||||
#include "amx/amx.h"
|
#include "amx/amx.h"
|
||||||
|
|
||||||
|
// SA-MP
|
||||||
|
|
||||||
|
typedef unsigned short PLAYERID;
|
||||||
#include "console.h"
|
#include "console.h"
|
||||||
#include "scrhttps.h"
|
#include "scrhttps.h"
|
||||||
#include "scrtimers.h"
|
#include "scrtimers.h"
|
||||||
|
@ -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;
|
||||||
|
}
|
||||||
|
@ -11,7 +11,27 @@ typedef struct _PLAYER_SPAWN_INFO // size: 46
|
|||||||
class CPlayerPool // size: WL 199024
|
class CPlayerPool // size: WL 199024
|
||||||
{
|
{
|
||||||
private:
|
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
|
#endif
|
||||||
|
Reference in New Issue
Block a user