mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[saco] Implement cmdDefaultCmdProc(...)
* Adds ` CLocalPlayer::Say(...)` stub
This commit is contained in:
parent
3b45f9932c
commit
0bd8c87f21
@ -4,12 +4,17 @@
|
||||
extern CChatWindow *pChatWindow;
|
||||
extern CCmdWindow *pCmdWindow;
|
||||
extern CDeathWindow *pDeathWindow;
|
||||
extern CNetGame *pNetGame;
|
||||
extern GAME_SETTINGS tSettings;
|
||||
|
||||
|
||||
void cmdDefaultCmdProc(PCHAR szCmd)
|
||||
{
|
||||
// TODO: cmdDefaultCmdProc
|
||||
if(pNetGame) {
|
||||
CLocalPlayer *pLocalPlayer;
|
||||
pLocalPlayer = pNetGame->GetPlayerPool()->GetLocalPlayer();
|
||||
pLocalPlayer->Say(szCmd);
|
||||
}
|
||||
}
|
||||
|
||||
void cmdTestDeathWindow(PCHAR szCmd)
|
||||
|
@ -77,3 +77,10 @@ void CLocalPlayer::ResetAllSyncAttributes()
|
||||
|
||||
//----------------------------------------------------------
|
||||
|
||||
void CLocalPlayer::Say(PCHAR szText)
|
||||
{
|
||||
// TODO: CLocalPlayer::Say .text:10005A10
|
||||
}
|
||||
|
||||
//----------------------------------------------------------
|
||||
|
||||
|
@ -92,6 +92,8 @@ public:
|
||||
|
||||
void ResetAllSyncAttributes();
|
||||
|
||||
void Say(PCHAR szText);
|
||||
|
||||
};
|
||||
|
||||
//----------------------------------------------------------
|
||||
|
@ -67,4 +67,6 @@ public:
|
||||
|
||||
DWORD GetTime();
|
||||
|
||||
CPlayerPool * GetPlayerPool() { return m_pPools->pPlayerPool; };
|
||||
|
||||
};
|
||||
|
@ -21,6 +21,9 @@ private:
|
||||
int field_2F3A;
|
||||
|
||||
public:
|
||||
|
||||
CLocalPlayer * GetLocalPlayer() { return m_pLocalPlayer; };
|
||||
|
||||
CPlayerPool();
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user