Quote:
Originally Posted by SapMan
Solution?
Attachment 11821
Attachment 11822
Attachment 11823
Attachment 11824
PHP Code:
new SERVER_DOWNLOAD[] = "http://github.com/SapMan/ServerModels/tree/master/models/";
public OnPlayerRequestDownload(playerid, type, crc)
{
if(!IsPlayerConnected(playerid)) return 0;
new filename[64], filefound, url_final[256];
if(type == DOWNLOAD_REQUEST_TEXTURE_FILE)
filefound = FindTextureFileNameFromCRC(crc, filename, sizeof(filename));
else if(type == DOWNLOAD_REQUEST_MODEL_FILE)
filefound = FindModelFileNameFromCRC(crc, filename, sizeof(filename));
if(filefound)
{
format(url_final, sizeof(url_final), "%s/%s", SERVER_DOWNLOAD, filename);
RedirectDownload(playerid, url_final);
}
return 1;
}
|
This is a private repository? If yes, try to change this to a public and check.