Question about MutlifastDL ini URLS

Discutii despre tot ce nu se incadreaza in celelalte categorii (dar legat de Counter-Strike !)

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
Infamous2017
Membru, skill +1
Membru, skill +1
Posts: 228
Joined: 11 Feb 2017, 12:13
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 2 times
Contact:

29 Apr 2017, 22:58

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..

--------------------------------------------------------------------------------------------------------------------------------------

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?
RoyalServer 2
User avatar
LondoN eXtream
Membru eXtream
Membru eXtream
Posts: 2755
Joined: 10 Oct 2014, 06:21
Detinator Steam: Da
SteamID: /id/london_extreamcs
Reputatie: Fost scripter eXtreamCS
Fost moderator ajutator
Membru Club eXtreamCS (6 luni)
Fond eXtream: 0
Location: Roman, Neamț
Has thanked: 3 times
Been thanked: 12 times

30 Apr 2017, 00:03

Search for multi downloadurl plugin
Infamous2017
Membru, skill +1
Membru, skill +1
Posts: 228
Joined: 11 Feb 2017, 12:13
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 2 times
Contact:

30 Apr 2017, 11:24

Thx i checked that and found that:

Code: Select all

#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 ? :/
User avatar
LondoN eXtream
Membru eXtream
Membru eXtream
Posts: 2755
Joined: 10 Oct 2014, 06:21
Detinator Steam: Da
SteamID: /id/london_extreamcs
Reputatie: Fost scripter eXtreamCS
Fost moderator ajutator
Membru Club eXtreamCS (6 luni)
Fond eXtream: 0
Location: Roman, Neamț
Has thanked: 3 times
Been thanked: 12 times

30 Apr 2017, 12:45

Create a file "downloadurl.ini" then put in configs.
Then add in file link
test.de/url
test.dl/web

etc.
Infamous2017
Membru, skill +1
Membru, skill +1
Posts: 228
Joined: 11 Feb 2017, 12:13
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 2 times
Contact:

30 Apr 2017, 13:37

so i dont need to put anything in sever.cfg ?
User avatar
LondoN eXtream
Membru eXtream
Membru eXtream
Posts: 2755
Joined: 10 Oct 2014, 06:21
Detinator Steam: Da
SteamID: /id/london_extreamcs
Reputatie: Fost scripter eXtreamCS
Fost moderator ajutator
Membru Club eXtreamCS (6 luni)
Fond eXtream: 0
Location: Roman, Neamț
Has thanked: 3 times
Been thanked: 12 times

30 Apr 2017, 16:01

Infamous2017 wrote:so i dont need to put anything in sever.cfg ?
nope
Post Reply

Return to “Diverse”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 19 guests