mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-04 00:23:22 +08:00
[bot] Implement n_ResumeRecordingPlayback(...)
* Implement `CNetGame::ResumeRecordingPlayback()`
This commit is contained in:
parent
b1920ee36e
commit
5d75008e6d
@ -590,4 +590,12 @@ void CNetGame::PauseRecordingPlayback()
|
|||||||
field_1FA = 11;
|
field_1FA = 11;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CNetGame::ResumeRecordingPlayback()
|
||||||
|
{
|
||||||
|
field_1FE = 9;
|
||||||
|
field_1DE = 1;
|
||||||
|
if(field_1FA == -1)
|
||||||
|
field_1EA += GetTickCount() - field_1F6 + 100;
|
||||||
|
else
|
||||||
|
field_1FA = -1;
|
||||||
|
}
|
||||||
|
@ -62,10 +62,12 @@ public:
|
|||||||
DWORD m_dwMapIcon[100];
|
DWORD m_dwMapIcon[100];
|
||||||
int field_1DA;
|
int field_1DA;
|
||||||
int field_1DE;
|
int field_1DE;
|
||||||
int field_1E2;
|
FILE *field_1E2;
|
||||||
char _gap1E6[12];
|
char _gap1E6[4];
|
||||||
|
int field_1EA;
|
||||||
|
char _gap1EE[4];
|
||||||
int field_1F2;
|
int field_1F2;
|
||||||
char _gap1F6[4];
|
int field_1F6;
|
||||||
int field_1FA;
|
int field_1FA;
|
||||||
int field_1FE;
|
int field_1FE;
|
||||||
|
|
||||||
@ -104,6 +106,7 @@ public:
|
|||||||
|
|
||||||
void StopRecordingPlayback();
|
void StopRecordingPlayback();
|
||||||
void PauseRecordingPlayback();
|
void PauseRecordingPlayback();
|
||||||
|
void ResumeRecordingPlayback();
|
||||||
};
|
};
|
||||||
|
|
||||||
//----------------------------------------------------
|
//----------------------------------------------------
|
||||||
|
@ -108,8 +108,8 @@ static cell AMX_NATIVE_CALL n_PauseRecordingPlayback(AMX *amx, cell *params)
|
|||||||
// native ResumeRecordingPlayback()
|
// native ResumeRecordingPlayback()
|
||||||
static cell AMX_NATIVE_CALL n_ResumeRecordingPlayback(AMX *amx, cell *params)
|
static cell AMX_NATIVE_CALL n_ResumeRecordingPlayback(AMX *amx, cell *params)
|
||||||
{
|
{
|
||||||
// TODO: n_ResumeRecordingPlayback
|
pNetGame->ResumeRecordingPlayback();
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// native SendChat(msg[])
|
// native SendChat(msg[])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user