[Tutorial] 0.3.DL: How to add custom skin, object and use the Redirect()
#3

Solution?

sa-mp-219.png

Captura.PNG

Captura1.PNG

Captura2.PNG


PHP код:
new SERVER_DOWNLOAD[] = "http://github.com/SapMan/ServerModels/tree/master/models/";
public 
OnPlayerRequestDownload(playeridtypecrc)
{
    if(!
IsPlayerConnected(playerid)) return 0;
    
    new 
filename[64], filefoundurl_final[256];
    
    if(
type == DOWNLOAD_REQUEST_TEXTURE_FILE)
        
filefound FindTextureFileNameFromCRC(crcfilenamesizeof(filename));
    else if(
type == DOWNLOAD_REQUEST_MODEL_FILE)
        
filefound FindModelFileNameFromCRC(crcfilenamesizeof(filename));
    if(
filefound)
    {
        
format(url_finalsizeof(url_final), "%s/%s"SERVER_DOWNLOADfilename);
        
RedirectDownload(playeridurl_final);
    }
    return 
1;

Reply


Messages In This Thread
0.3.DL: How to add custom skin, object and use the Redirect() - by willttoonn - 11.07.2018, 22:56
Re: 0.3.DL: How to add custom skin, object and use the Redirect() - by RedRex - 11.07.2018, 23:11
Re: 0.3.DL: How to add custom skin, object and use the Redirect() - by SapMan - 26.08.2018, 21:40
Re: 0.3.DL: How to add custom skin, object and use the Redirect() - by Hawsn - 15.04.2019, 15:25
Re: 0.3.DL: How to add custom skin, object and use the Redirect() - by Kenton - 15.04.2019, 15:29

Forum Jump:


Users browsing this thread: 1 Guest(s)