View Single Post
Author Message
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 03-26-2008 , 12:15   SM File/Folder Downloader and Precacher
Reply With Quote #1

/********************************************* **********************************

SM File/Folder Downloader and Precacher

Version: 1.4
Author: SWAT_88

1.0 First version, should work on basically any mod
1.1 Added new features:
Added security checks.
Added map specific downloads.
Added simple downloads.
1.2 Added Folder Download Feature.
1.3 Version for testing.
1.4 Fixed some bugs:
Closed all open Handles.
Added more security checks.
Description:
This Plugin downloads and precaches the Files in downloads.ini.
There are several categories for Download and Precache in downloads.ini.
If you write no mapname the plugin downloads it in any map, else the plugin only download the files under the mapname if the map is running.
For more information see examples files.
The downloads_simple.ini contains simple downloads (no precache), like the original.
Folder Download usage:
Write your folder name in the downloads.ini or downloads_simple.ini.
Example:
Correct: sound/misc
Incorrect: sound/misc/
Commands:
None.
Cvars:
sm_downloader_enabled "1" - 0: disables the plugin - 1: enables the plugin

sm_downloader_normal "1" - 0: dont use downloads.ini - 1: Use downloads.ini

sm_downloader_simple "1" - 0: dont use downloads_simple.ini - 1: Use downloads_simple.ini
Modifications:
  • SteamPipe Version - by Powerlord
    • With SteamPipe support.
    • For more information look here
  • SteamPipe Version - by electronic_m
    • With SteamPipe support.
    • For more information look here

Setup (SourceMod):
Install the smx file to addons\sourcemod\plugins.
Install the downloads.ini to addons\sourcemod\configs.
Install the downloads_simple.ini to addons\sourcemod\configs.
(Re)Load Plugin or change Map.
TO DO:
Nothing.
Copyright:
Everybody can edit this plugin and copy this plugin.
Thanks to:
pRED*
sfPlayer
Testing:
J@y-R
FunTF2Server
Donations:
I'm a student and code this plugins in my freetime, while you probably play games .
If you like my work, kindly make a donation via PayPal.
Feel free to donate whatever amount you like.

Thank you for supporting this plugin!
Don't forget to support SourceMod too.
Consider: Without SourceMod none of these plugins would exist!
Notice: This


HAVE FUN!!!

********************************************* **********************************/
Attached Files
File Type: zip SM Downloader v1.4.zip (7.4 KB, 44756 views)
File Type: sp Get Plugin or Get Source (sm_downloader.sp - 16985 views - 6.9 KB)
File Type: ini downloads.ini (211 Bytes, 10692 views)
File Type: ini downloads_simple.ini (29 Bytes, 9548 views)
File Type: ini downloads_example.ini (906 Bytes, 16260 views)
File Type: ini downloads_simple_example.ini (303 Bytes, 12234 views)
__________________

Last edited by SWAT_88; 02-01-2016 at 14:33.
SWAT_88 is offline