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

3 or 4 sv_downloadurl


Post New Thread Reply   
 
Thread Tools Display Modes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-30-2009 , 13:36   Re: 3 or 4 sv_downloadurl
Reply With Quote #21

Quote:
Originally Posted by cezars View Post
Thx for try to help but this still dont help couse i need sometfing that use path to file couse i dont have private ip for my ftp i got like others and i have accout http://exemple.com/cezars get it? i need sometfing that i can use with path sv_download 1 http://exemple.com/cezars
2 http://exemple1.com/cez
3 http://exemple2.com/ceza
Why did you quote me? I wasn't helping anyone .
__________________
fysiks is offline
madeitout
Member
Join Date: Jun 2008
Old 09-04-2009 , 03:35   Re: 3 or 4 sv_downloadurl
Reply With Quote #22

here i made this, it doesnt make them all 100% even but its better than nothing
PHP Code:
#include <amxmodx>

new numdlurls[][] = 
{
    
"http://dl.com/cstrike",
    
"http://sdfgd45fdg.com/cstrike",
    
"http://asdfsaf.com/cstrike",
    
"http://sad.com/cstrike",
    
"http://6gfhdfhgfdh.com/cstrike"
};

public 
plugin_init()
    
set_cvar_string("sv_downloadurl"dlurls[num]), set_cvar_num("sv_allowdownload"1);

public 
client_connect()
    
num num / (sizeof(dlurls) - 1) == 1.0 num 1set_cvar_string("sv_downloadurl"dlurls[num]); 
madeitout is offline
kaiyuan007
Junior Member
Join Date: Apr 2009
Old 01-24-2010 , 15:22   Re: 3 or 4 sv_downloadurl
Reply With Quote #23

does madeitout your plugins works?
kaiyuan007 is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 01-24-2010 , 15:24   Re: 3 or 4 sv_downloadurl
Reply With Quote #24

http://forums.alliedmods.net/showthread.php?t=116306
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
cezars
Member
Join Date: May 2009
Location: Romania
Old 02-06-2010 , 20:53   Re: 3 or 4 sv_downloadurl
Reply With Quote #25

Quote:
Originally Posted by crazyeffect View Post
this dont help me couse i need to copy file on all server
__________________
cezars is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-06-2010 , 23:26   Re: 3 or 4 sv_downloadurl
Reply With Quote #26

Quote:
Originally Posted by cezars View Post
this dont help me couse i need to copy file on all server
All plugins relating to this topic will require the same thing. What you're requesting is not possible with a plugin (or anything in the server).
__________________
fysiks is offline
M@ME
Junior Member
Join Date: Aug 2012
Location: Winterpeg Manitoba
Old 02-11-2013 , 20:18   Re: 3 or 4 sv_downloadurl
Reply With Quote #27

I have accomplished this before by splitting your download folders into multiple locations. So your maps on one host, models on another etc. Then on your main sv_downloadurl, you drop in an htaccess file into the folder telling the person where to retrieve the files for that directory (which are in another public location on a different server).

So the server.cfg would have your sv_downloadurl as http://yourmainhost.com/

in your maps folder you would have a file called .htaccess in it. And within the htaccess file you would write:

Redirect / http://yoursecondaryhost.com/ <--make sure this is your root maps folder

You can segregate your downloads into as may sections as you want. But only 1 location per folder.

No plugin needed.

I hope this helps!
__________________

Last edited by M@ME; 02-11-2013 at 21:14.
M@ME is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-12-2013 , 00:25   Re: 3 or 4 sv_downloadurl
Reply With Quote #28

While the intention of your post is good, it does not actually help anyone set it up the way you describe in your first paragraph.

You need to be much more explicit. If you say that you can split things up based on folder then you need to show how that is actually accomplished in the .htaccess file because as it is, your example doesn't do anything.
__________________

Last edited by fysiks; 02-12-2013 at 00:27.
fysiks is offline
Reply



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 13:21.


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