Thread: Extra Precacher
View Single Post
Plugin Info:     Modification:          Category:          Approver:   Hawk552 (427)
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 03-13-2008 , 13:49   Extra Precacher
Reply With Quote #1

Extra Precacher

[Description]
  • Some plugins like this already exist, but are unsupported, unfunctional, and so.
  • This plugin basically precache files that are defined in a configuration file, with some advanced func.
  • Multiple file extension support. (Defined in plugin)
  • Multiple file name support. (name.ext, *.ext, *.*)
  • Useful for plugins that don't have source, maps, motd's and so.
  • Individual map configuration support.If config for current map "extra_precacher_mapname.ini" doesn't exist, the default file "extra_precacher.ini" will be loaded.
[Info]
  • You can define the allowed file extensions in source.To add more, just add a "," then the extension ".lol".
Code:
new const gValidExt[] = ".wad,.mdl,.spr,.wav,.mp3";
  • If the file writed in configuration file doesn't exist, won't be precached, to avoid a server warning in console.
  • Extensions :
name.ext - Precache specified file with specified extension.
*.ext - Precache all files from specified path with specified extension.
*.* - Precache all files from specified path.
Attached Files
File Type: sma Get Plugin or Get Source (extra_precacher.sma - 8182 views - 3.1 KB)
File Type: ini extra_precacher_example.ini (396 Bytes, 4871 views)
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 04-09-2008 at 09:25.
Alka is offline