mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-19 20:26:14 +08:00
[server] Implement/match CPlayer::SetSpawnInfo(...)
This commit is contained in:
@ -10,3 +10,10 @@ void CPlayer::Say(unsigned char * szText, BYTE byteTextLen)
|
|||||||
|
|
||||||
//----------------------------------------------------
|
//----------------------------------------------------
|
||||||
|
|
||||||
|
void CPlayer::SetSpawnInfo(PLAYER_SPAWN_INFO *pSpawn)
|
||||||
|
{
|
||||||
|
memcpy(&m_SpawnInfo,pSpawn,sizeof(PLAYER_SPAWN_INFO));
|
||||||
|
m_bHasSpawnInfo = TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------
|
||||||
|
@ -2,17 +2,35 @@
|
|||||||
#ifndef SAMPSRV_PLAYER_H
|
#ifndef SAMPSRV_PLAYER_H
|
||||||
#define SAMPSRV_PLAYER_H
|
#define SAMPSRV_PLAYER_H
|
||||||
|
|
||||||
|
#pragma pack(1)
|
||||||
|
typedef struct _PLAYER_SPAWN_INFO
|
||||||
|
{
|
||||||
|
char _pad0[46];
|
||||||
|
} PLAYER_SPAWN_INFO;
|
||||||
|
|
||||||
|
//----------------------------------------------------
|
||||||
|
|
||||||
|
#pragma pack(1)
|
||||||
class CPlayer
|
class CPlayer
|
||||||
{
|
{
|
||||||
private:
|
|
||||||
char _gap0[11486];
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
// Size: 11486
|
||||||
|
char _pad0[11261];
|
||||||
|
|
||||||
|
PLAYER_SPAWN_INFO m_SpawnInfo;
|
||||||
|
BOOL m_bHasSpawnInfo;
|
||||||
|
|
||||||
|
char _pad2C2F[175];
|
||||||
|
|
||||||
|
|
||||||
void Say(unsigned char * szText, BYTE byteTextLength);
|
void Say(unsigned char * szText, BYTE byteTextLength);
|
||||||
|
|
||||||
|
void SetSpawnInfo(PLAYER_SPAWN_INFO *pSpawn);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//----------------------------------------------------
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//----------------------------------------------------
|
//----------------------------------------------------
|
||||||
|
@ -2,12 +2,6 @@
|
|||||||
#ifndef SAMPSRV_PLAYERPOOL_H
|
#ifndef SAMPSRV_PLAYERPOOL_H
|
||||||
#define SAMPSRV_PLAYERPOOL_H
|
#define SAMPSRV_PLAYERPOOL_H
|
||||||
|
|
||||||
// TODO: PLAYER_SPAWN_INFO
|
|
||||||
typedef struct _PLAYER_SPAWN_INFO // size: 46
|
|
||||||
{
|
|
||||||
char _gap0[46];
|
|
||||||
} PLAYER_SPAWN_INFO;
|
|
||||||
|
|
||||||
class CPlayerPool // size: WL 199024
|
class CPlayerPool // size: WL 199024
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
Reference in New Issue
Block a user