26.02.2017, 09:15
It should be possible at the moment. This function just patches the internal format string before fopen. In theory you can specify a local path from samp server eg. /scriptfiles/asd or C:/testnpcdir
pawn Код:
// native SetRecordingDirectory(const dir[]);
AMX_DECLARE_NATIVE(Natives::SetRecordingDirectory)
{
CHECK_PARAMS(1, "SetRecordingDirectory", LOADED);
std::string dir;
CScriptParams::Get()->Read(&dir);
if (!CAddress::ADDR_RecordingDirectory) return 0;
// Magic happens here
strcpy(gRecordingDataPath, dir.c_str());
strcat(gRecordingDataPath, "/%s.rec");
return 1;
}

