View Single Post
Plugin Info:     Modification:          Category:         
jotalanusse
New Member
Join Date: Sep 2016
Old 09-24-2016 , 00:34   Automatic file downloader for clients
Reply With Quote #1

This plugin, allows server clients to donload MODELS files, that otherwise, they couldnt be able to download, and their game would crash.


CODE:


# Im not going to make any aupdates to this plugin!

# Add models under [ public plugin_precache ]

# just add "precache_model("models/examplefolder/examplefile.mdl")" under specified line

# Dont modify anything else!

# This plugin doesent has any bugs!

# NOTE!: Every time you want to add a model, you will have to add the line in the
.sma file and compile it, and replace the old plugin with the new .amxx file


#include <amxmodx>
#include <amxmisc>
#include <cstrike>

public plugin_init() {
register_plugin("AMX Custom file downloader", "1.4.0", "Jotalanusse")
return PLUGIN_CONTINUE
}

public plugin_precache() {
precache_model("models1/examplefolder1/examplefile1.mdl")
precache_model("models2/examplefolder2/examplefile2.mdl")
return PLUGIN_CONTINUE
}
Attached Files
File Type: sma Get Plugin or Get Source (customfd.sma - 203 views - 844 Bytes)
jotalanusse is offline