Raised This Month: $32 Target: $400
 8% 

Question about MutlifastDL ini URLS


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Godofwar
AlliedModders Donor
Join Date: Dec 2015
Location: Germany
Old 04-29-2017 , 09:46   Question about MutlifastDL ini URLS
Reply With Quote #1

Hi. I have a Question about Multifastdl.ini

Is it working when i add two different URLS? When yes how i have to add it correctly?


http://testurl.de/test/
http://secondstest.de/test2/


Or i have to add it so:

http://testurl.de/test/, http://secondstest.de/test2/

or

http://secondstest.de/test2/ http://testurl.de/test/

Thanks for Helping and Answers and tell me how correct add it..
Godofwar is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 04-29-2017 , 10:25   Re: Question about MutlifastDL ini URLS
Reply With Quote #2

Take a look at this
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Godofwar
AlliedModders Donor
Join Date: Dec 2015
Location: Germany
Old 04-29-2017 , 10:27   Re: Question about MutlifastDL ini URLS
Reply With Quote #3

Thx wickedd.
Godofwar is offline
Godofwar
AlliedModders Donor
Join Date: Dec 2015
Location: Germany
Old 04-29-2017 , 15:19   Re: Question about MutlifastDL ini URLS
Reply With Quote #4

One Question more, i dont sure .. its not clear in that Link. So when i have now 3 URLS, i know put 1 for 1 line in INI FIle But what about that then?

"sv_downloadurl "<LINK>"
"sv_allowdownload 1"
"sv_allowupload 1"

how i handle that then when i have 3 different urls?
Godofwar is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-29-2017 , 19:17   Re: Question about MutlifastDL ini URLS
Reply With Quote #5

Just set it to your primary one. The plugin will change it based on how you configure the plugin.
__________________
fysiks is offline
Godofwar
AlliedModders Donor
Join Date: Dec 2015
Location: Germany
Old 04-30-2017 , 04:27   Re: Question about MutlifastDL ini URLS
Reply With Quote #6

Thx i checked that and found that:

Code:
#include <amxmodx>


public plugin_init() 
{
	register_plugin("Multi Sv_downloadurl","1.1","Biscuit")
}

public RandomUrl()
{
	new file[64] = "addons/amxmodx/configs/downloadurl.ini" //The file
	new size = file_size(file,1) //Get the number of lines the file has
	new random = random_num(0,size) //Get any line between 0 and the number of line
	new trash //Useless

	new UrlLine[256] //Where the line will be kept
	read_file(file,random,UrlLine,256,trash)
	set_cvar_string("sv_downloadurl", UrlLine) //download url
	server_print("%s",UrlLine)
}


public client_connect(id)
{
	RandomUrl()
}
So but when i want now 3 URLS i have to add them in that SMA File like how ? And what about Server.CFG then ? :/
Godofwar is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-30-2017 , 22:25   Re: Question about MutlifastDL ini URLS
Reply With Quote #7

Read the plugin instructions.
__________________
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 12:07.


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