/** * * (c)2007, Bentski * Homepage: http://kzlt.bentski.lt/ * Server: cs.bentski.lt:27015 * * HTTP downloader. Allows to download files from the web. * */ #if defined _httpdl_included #endinput #endif #define _httpdl_included #pragma library httpdl #define MAX_DOWNLOADS 10 /* Forwards */ // Called when download is finished // * id - download id // * file - path + filename of downloaded file forward dlcomplete(id, file[]); /* Natives */ // Downloads a file // Returns download id or 0 if something failed // * url - address of remote file (eg. "http://bentski.lt/something.zip") // * dlpath - where to place downloaded file (eg. "addons/amxmodx/data/something.zip") native download(url[], dlpath[]);