mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 17:58:16 +08:00
[saco] Implement cmdDefaultCmdProc(...)
* Adds ` CLocalPlayer::Say(...)` stub
This commit is contained in:
1 parent
3b45f9932c
commit
0bd8c87f21
5 files changed
+20
-1
No files matched your search
+6
-1
@@ -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();
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user