• need some help with a certain plugin file thing
    4 replies, posted
so the little file I found is for multiple fastDL links to be used. basically I have content that I want to be available to fastDL but not be on the workshop, while there is also stuff on the workshop which I want to be available via fastDL aswell. however I have no idea how to use the plugin at all, or even where to put it on my server. its some .sma file that I found with this code in it: #include <amxmodx> #define PLUGIN_NAME "Multi FastDL" #define PLUGIN_VERSION "1.2" #define PLUGIN_AUTHOR "JoRoPiTo" #define PLUGIN_CONFIG "multifastdl.ini" #define MAX_URL 32 new g_last new g_total new g_url[MAX_URL][128] new gp_downloadurl public plugin_init() { register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR) gp_downloadurl = get_cvar_pointer("sv_downloadurl") new cfgdir[32], cfgfile[128], line[128] get_localinfo("amxx_configsdir", cfgdir, charsmax(cfgdir)); formatex(cfgfile, charsmax(cfgfile), "%s/%s", cfgdir, PLUGIN_CONFIG) new f = fopen(cfgfile, "rt") while(!feof(f)) { new tmp[8] if(g_total == MAX_URL) break fgets(f, line, charsmax(line)) trim(line) if(!equali(line, "http://", 7)) continue copy(g_url[g_total], 127, line) g_total++ } g_total-- fclose(f) } public client_connect(id) { g_last = (g_last < g_total) ? g_last + 1 : 0 set_pcvar_string(gp_downloadurl, g_url[g_last]) } #include <amxmodx> #define PLUGIN_NAME "Multi FastDL" #define PLUGIN_VERSION "1.2" #define PLUGIN_AUTHOR "JoRoPiTo" #define PLUGIN_CONFIG "multifastdl.ini" #define MAX_URL 32 new g_last new g_total new g_url[MAX_URL][128] new gp_downloadurl public plugin_init() { register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR) gp_downloadurl = get_cvar_pointer("sv_downloadurl") new cfgdir[32], cfgfile[128], line[128] get_localinfo("amxx_configsdir", cfgdir, charsmax(cfgdir)); formatex(cfgfile, charsmax(cfgfile), "%s/%s", cfgdir, PLUGIN_CONFIG) new f = fopen(cfgfile, "rt") while(!feof(f)) { new tmp[8] if(g_total == MAX_URL) break fgets(f, line, charsmax(line)) trim(line) if(!equali(line, "http://", 7)) continue copy(g_url[g_total], 127, line) g_total++ } g_total-- fclose(f) } public client_connect(id) { g_last = (g_last < g_total) ? g_last + 1 : 0 set_pcvar_string(gp_downloadurl, g_url[g_last]) } any help at all would be appreciated and if there is an alternative method for this please share for me
.sma files are apparently AMX mod plugins so I'm pretty sure that wont work in gmod
damn, any way to have multiple sources for downloading server content from? I don't want to put private server code onto workshop, while at the same time reuploading all my addons to google drive would be rather annoying when an update is needed for them. also limited space on g-drive too.
[QUOTE=god o warzen;52482369]damn, any way to have multiple sources for downloading server content from? I don't want to put private server code onto workshop, while at the same time reuploading all my addons to google drive would be rather annoying when an update is needed for them. also limited space on g-drive too.[/QUOTE] Why would you be putting code on a FastDL server? All it needs is content like models, materials, etc. And you can use a free web host as a FastDL server if you really don't have any other option from your server provider. Just upload the files to it with FTP whenever you have something you want to add to it.
basically it was for 2 things really, multiple fastDLs in other regions (EU/US/AU/ECT) and for hosting my private stuff while also being able to use steam collection as a fall back
Sorry, you need to Log In to post a reply to this thread.