AMXX-BG.INFO httpdl.inc Raw include

httpdl.inc

Original include source with line numbers.

Back Download .inc
1 /**
2 *
3 * (c)2007, Bentski
4 * Homepage: http://kzlt.bentski.lt/
5 * Server: cs.bentski.lt:27015
6 *
7 * HTTP downloader. Allows to download files from the web.
8 *
9 */
10
11 #if defined _httpdl_included
12 #endinput
13 #endif
14 #define _httpdl_included
15
16 #pragma library httpdl
17
18 #define MAX_DOWNLOADS 10
19
20 /* Forwards */
21
22 // Called when download is finished
23 // * id - download id
24 // * file - path + filename of downloaded file
25 forward dlcomplete(id, file[]);
26
27
28 /* Natives */
29
30 // Downloads a file
31 // Returns download id or 0 if something failed
32 // * url - address of remote file (eg. "http://bentski.lt/something.zip")
33 // * dlpath - where to place downloaded file (eg. "addons/amxmodx/data/something.zip")
34 native download(url[], dlpath[]);