Raised This Month: $51 Target: $400
 12% 

Automatic file downloader for clients


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
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 - 202 views - 844 Bytes)
jotalanusse is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:52.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode