SA-MP Forums Archive
[Tutorial] 0.3.DL: How to add custom skin, object and use the Redirect() - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] 0.3.DL: How to add custom skin, object and use the Redirect() (/showthread.php?tid=656282)



0.3.DL: How to add custom skin, object and use the Redirect() - willttoonn - 11.07.2018

SA-MP 0.3.DL
How to add custom skin, object and use the Redirect()
It's necessary use SA-MP 0.3.DL
If you have any doubt please comment this thread. If you find any error or bad translation send me a PM.
Sorry my bad english, I am not native speaker.



Re: 0.3.DL: How to add custom skin, object and use the Redirect() - RedRex - 11.07.2018

nice! one!


Re: 0.3.DL: How to add custom skin, object and use the Redirect() - SapMan - 26.08.2018

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;




Re: 0.3.DL: How to add custom skin, object and use the Redirect() - Hawsn - 15.04.2019

how i can add custon skin of vehicle/weapon ?


Re: 0.3.DL: How to add custom skin, object and use the Redirect() - homelessdrop - 15.04.2019

Skin / Weapon isn't supported. You know use just objects and skin's.