[bot] Implement n_PauseRecordingPlayback(...)

* Implement `CNetGame::PauseRecordingPlayback()`
This commit is contained in:
RD42 2024-06-29 22:38:46 +08:00
parent d9976bb678
commit b1920ee36e
3 changed files with 8 additions and 2 deletions

View File

@ -584,5 +584,10 @@ void CNetGame::StopRecordingPlayback()
field_1DA = 0; field_1DA = 0;
} }
void CNetGame::PauseRecordingPlayback()
{
if(field_1DE == 1 || field_1DE == 2)
field_1FA = 11;
}

View File

@ -103,6 +103,7 @@ public:
void SetVehicleAdded(VEHICLEID VehicleID, BOOL a2); void SetVehicleAdded(VEHICLEID VehicleID, BOOL a2);
void StopRecordingPlayback(); void StopRecordingPlayback();
void PauseRecordingPlayback();
}; };
//---------------------------------------------------- //----------------------------------------------------

View File

@ -101,8 +101,8 @@ static cell AMX_NATIVE_CALL n_StopRecordingPlayback(AMX *amx, cell *params)
// native PauseRecordingPlayback() // native PauseRecordingPlayback()
static cell AMX_NATIVE_CALL n_PauseRecordingPlayback(AMX *amx, cell *params) static cell AMX_NATIVE_CALL n_PauseRecordingPlayback(AMX *amx, cell *params)
{ {
// TODO: n_PauseRecordingPlayback pNetGame->PauseRecordingPlayback();
return 0; return 1;
} }
// native ResumeRecordingPlayback() // native ResumeRecordingPlayback()