27.08.2018, 01:21
Any idea why this happens?
Captura.PNG
Captura1.PNG
PHP Code:
[21:08:55] [requesting download]: playerid 0 redirecting download to https://github.com/username/servername/tree/master/models/Skins/ViceCity/vc_BFOBE.dff.
[21:08:55] [requesting download]: playerid 0 redirecting download to https://github.com/username/servername/tree/master/models/Skins/ViceCity/vc_BFOBE.txd.
[21:08:55] [requesting download]: playerid 0 redirecting download to https://github.com/username/servername/tree/master/models/Skins/ViceCity/vc_BFYST.dff.
[21:08:55] [requesting download]: playerid 0 redirecting download to https://github.com/username/servername/tree/master/models/Skins/ViceCity/vc_BFYST.txd.
[21:08:55] [requesting download]: playerid 0 redirecting download to https://github.com/username/servername/tree/master/models/Skins/ViceCity/vc_BMOBE.dff.
[21:08:55] [requesting download]: playerid 0 redirecting download to https://github.com/username/servername/tree/master/models/Skins/ViceCity/vc_BMOBE.txd.
[21:08:57] [requesting download]: playerid 0 redirecting download to https://github.com/username/servername/tree/master/models/Skins/ViceCity/vc_C_worker.dff.
[21:08:57] [requesting download]: playerid 0 redirecting download to https://github.com/username/servername/tree/master/models/Skins/ViceCity/vc_C_worker.txd.
[21:08:57] [requesting download]: playerid 0 redirecting download to https://github.com/username/servername/tree/master/models/Skins/ViceCity/vc_Cba.dff.
[21:08:58] [requesting download]: playerid 0 redirecting download to https://github.com/username/servername/tree/master/models/Skins/ViceCity/vc_Cba.txd.
[21:08:58] [requesting download]: playerid 0 redirecting download to https://github.com/username/servername/tree/master/models/Skins/ViceCity/vc_Clb.dff.
[21:08:58] [requesting download]: playerid 0 redirecting download to https://github.com/username/servername/tree/master/models/Skins/ViceCity/vc_Clb.txd.
[21:08:59] [requesting download]: playerid 0 redirecting download to https://github.com/username/servername/tree/master/models/Skins/ViceCity/vc_Gda.dff.
[21:09:00] [requesting download]: playerid 0 redirecting download to https://github.com/username/servername/tree/master/models/Skins/ViceCity/vc_Gda.txd.
[21:09:00] [requesting download]: playerid 0 redirecting download to https://github.com/username/servername/tree/master/models/Skins/ViceCity/vc_Gdb.dff.
[21:09:00] [requesting download]: playerid 0 redirecting download to https://github.com/username/servername/tree/master/models/Skins/ViceCity/vc_Gdb.txd.
[21:09:02] [requesting download]: playerid 0 redirecting download to https://github.com/username/servername/tree/master/models/Skins/ViceCity/vc_HFOST.dff.
[21:09:02] [requesting download]: playerid 0 redirecting download to https://github.com/username/servername/tree/master/models/Skins/ViceCity/vc_HFOST.txd.
[21:09:03] [requesting download]: playerid 0 redirecting download to https://github.com/username/servername/tree/master/models/Skins/ViceCity/vc_HFOTR.dff.
[21:09:03] [requesting download]: playerid 0 redirecting download to https://github.com/username/servername/tree/master/models/Skins/ViceCity/vc_HFOTR.txd.
[21:09:03] [requesting download]: playerid 0 redirecting download to https://github.com/username/servername/tree/master/models/Skins/ViceCity/vc_HFYCG.dff.
[21:09:03] [requesting download]: playerid 0 redirecting download to https://github.com/username/servername/tree/master/models/Skins/ViceCity/vc_HFYCG.txd.
PHP Code:
new DOWNLOAD_URL[] = "https://github.com/username/servername/tree/master/models";
public OnPlayerRequestDownload(playerid, type, crc)
{
if(!IsPlayerConnected(playerid)) return 0;
new url_final[256+1], filename[64+1], foundfilename = 0;
if(type == DOWNLOAD_REQUEST_TEXTURE_FILE)
{
foundfilename = FindTextureFileNameFromCRC(crc, filename, 64);
}
else if(type == DOWNLOAD_REQUEST_MODEL_FILE)
{
foundfilename = FindModelFileNameFromCRC(crc, filename, 64);
}
if(foundfilename)
{
format(url_final, 256, "%s/%s", DOWNLOAD_URL, filename);
RedirectDownload(playerid, url_final);
printf("[requesting download]: playerid %d redirecting download to %s.", playerid, url_final);
}
return 0;
}
Captura1.PNG