#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()
}