[Tutorial] SA-MP 0.3.8: Adicionando skins, objetos e usando Redirect()
#20

Quote:
Originally Posted by SapMan
View Post
Solution?

Attachment 11821

Attachment 11822

Attachment 11823

Attachment 11824

PHP Code:
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;

This is a private repository? If yes, try to change this to a public and check.
Reply


Messages In This Thread
SA-MP 0.3.DL: Adicionando skins, objetos e usando Redirect() - by willttoonn - 05.12.2017, 19:30
Re: SA-MP 0.3.8: Adicionando skins, objetos e usando Redirect() - by Locky_ - 05.12.2017, 20:21
Re: SA-MP 0.3.8: Adicionando skins, objetos e usando Redirect() - by Gguiz - 05.12.2017, 21:10
Re: SA-MP 0.3.8: Adicionando skins, objetos e usando Redirect() - by Pool - 05.12.2017, 23:16
Re: SA-MP 0.3.8: Adicionando skins, objetos e usando Redirect() - by IlanZ - 06.12.2017, 00:50
Re: SA-MP 0.3.8: Adicionando skins, objetos e usando Redirect() - by Coringa_Vilao - 06.12.2017, 11:36
Re: SA-MP 0.3.8: Adicionando skins, objetos e usando Redirect() - by Cleyson - 06.12.2017, 12:39
Re: SA-MP 0.3.8: Adicionando skins, objetos e usando Redirect() - by mmad12 - 27.12.2017, 04:16
Re: SA-MP 0.3.8: Adicionando skins, objetos e usando Redirect() - by z[D]ark - 27.12.2017, 05:43
Re: SA-MP 0.3.8: Adicionando skins, objetos e usando Redirect() - by Locky_ - 27.12.2017, 10:20
Re: SA-MP 0.3.8: Adicionando skins, objetos e usando Redirect() - by SnowBorn - 27.12.2017, 20:12
Re: SA-MP 0.3.8: Adicionando skins, objetos e usando Redirect() - by Gguiz - 27.12.2017, 20:53
Re: SA-MP 0.3.8: Adicionando skins, objetos e usando Redirect() - by willttoonn - 06.01.2018, 16:39
Re: SA-MP 0.3.8: Adicionando skins, objetos e usando Redirect() - by ThinAir - 29.01.2018, 13:26
Re: SA-MP 0.3.DL: Adicionando skins, objetos e usando Redirect() - by willttoonn - 30.01.2018, 20:17
Re: SA-MP 0.3.8: Adicionando skins, objetos e usando Redirect() - by YurSYurS - 03.02.2018, 06:02
Re: SA-MP 0.3.DL: Adicionando skins, objetos e usando Redirect() - by willttoonn - 11.07.2018, 23:00
Re: SA-MP 0.3.8: Adicionando skins, objetos e usando Redirect() - by SapMan - 26.08.2018, 19:54
Re: SA-MP 0.3.8: Adicionando skins, objetos e usando Redirect() - by SapMan - 26.08.2018, 21:36
Re: SA-MP 0.3.8: Adicionando skins, objetos e usando Redirect() - by willttoonn - 30.08.2018, 15:29
Re: SA-MP 0.3.8: Adicionando skins, objetos e usando Redirect() - by Rhayziin - 31.08.2018, 06:07
Re: SA-MP 0.3.8: Adicionando skins, objetos e usando Redirect() - by Saik - 15.09.2018, 01:39
Re: SA-MP 0.3.8: Adicionando skins, objetos e usando Redirect() - by Noppet - 13.01.2019, 21:03
Re: SA-MP 0.3.8: Adicionando skins, objetos e usando Redirect() - by willttoonn - 14.01.2019, 10:55
Re: SA-MP 0.3.8: Adicionando skins, objetos e usando Redirect() - by webone - 14.01.2019, 11:02
Re: SA-MP 0.3.8: Adicionando skins, objetos e usando Redirect() - by ipsLuan - 14.01.2019, 15:25
Re: SA-MP 0.3.8: Adicionando skins, objetos e usando Redirect() - by PowerMwK - 14.01.2019, 15:27

Forum Jump:


Users browsing this thread: 1 Guest(s)