16.12.2018, 15:26
Don't forget to modify the model download link in the script or change it to download from your server.
EDIT: Comment the following code:
EDIT: Comment the following code:
PHP код:
new
//fullurl[256+1],
dlfilename[64+1],
foundfilename = 0;
if (type == DOWNLOAD_REQUEST_TEXTURE_FILE)
foundfilename = FindTextureFileNameFromCRC(crc, dlfilename, sizeof dlfilename);
else if (type == DOWNLOAD_REQUEST_MODEL_FILE)
foundfilename = FindModelFileNameFromCRC(crc, dlfilename, sizeof dlfilename);
if (foundfilename) {
//format(fullurl, sizeof fullurl, "%s/%s", MODEL_DOWNLOAD_URL, dlfilename);
RedirectDownload(playerid, sprintf("%s/%s", MODEL_DOWNLOAD_URL, dlfilename));
Log_Write("logs/download_log.txt", "[requesting download] [%s] %s (%d) redirecting download to %s/%s.",
GetTimeEx(),
GetPlayerNameEx(playerid),
playerid,
MODEL_DOWNLOAD_URL,
dlfilename
);
}