mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +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;
|
||||
}
|
||||
|
||||
|
||||
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];
|
||||
int field_1DA;
|
||||
int field_1DE;
|
||||
int field_1E2;
|
||||
char _gap1E6[12];
|
||||
FILE *field_1E2;
|
||||
char _gap1E6[4];
|
||||
int field_1EA;
|
||||
char _gap1EE[4];
|
||||
int field_1F2;
|
||||
char _gap1F6[4];
|
||||
int field_1F6;
|
||||
int field_1FA;
|
||||
int field_1FE;
|
||||
|
||||
@ -104,6 +106,7 @@ public:
|
||||
|
||||
void StopRecordingPlayback();
|
||||
void PauseRecordingPlayback();
|
||||
void ResumeRecordingPlayback();
|
||||
};
|
||||
|
||||
//----------------------------------------------------
|
||||
|
@ -108,8 +108,8 @@ static cell AMX_NATIVE_CALL n_PauseRecordingPlayback(AMX *amx, cell *params)
|
||||
// native ResumeRecordingPlayback()
|
||||
static cell AMX_NATIVE_CALL n_ResumeRecordingPlayback(AMX *amx, cell *params)
|
||||
{
|
||||
// TODO: n_ResumeRecordingPlayback
|
||||
return 0;
|
||||
pNetGame->ResumeRecordingPlayback();
|
||||
return 1;
|
||||
}
|
||||
|
||||
// native SendChat(msg[])
|
||||
|
Loading…
Reference in New Issue
Block a user