Can you give me some Scripts about Mapchange Every 60minute?
i mean,
Map will changed every 60minute (LOOP)
Thanks.
Scripts
Mapchange every 60minute
Mapchange every 60minute
1

mapChange = true;
maps = {
	[1] = "MAP1_NAME";
	[2] = "MAP2_NAME";
	[3] = "MAP3_NAME";
}
function _changeMap()
	mapChange = true;
	parse("changemap "..maps[math.random(1, #maps)]);
end
while mapChange do
	mapChange = false;
	timer(60000*60, "_changeMap");
end
Rygna: You don't need to use Lua to change map every 60 minutes. Have a look at this
mp_timelimit and a file mapcycle.cfg in your sys folder.
Hajt: Thanks!, but i just want like IRAN TOWN CountDown Restart.
Rainoth: Yes, but the big problem is, i don't know where to start make it
parse and
hudtxt
minute times = 3600
addhook("second","me")
function me()
	if times and times > 0 then
		parse('hudtxt 1 "MapChange in : '..timer..' " 40 40 0")
	elseif times == 0 then
		parse('hutxt 1 "" 0 0 0')
		timer = nil
	end
end
addhook("startround" , "_mes")
function _mes()
	timer = 3600
end
minute = 60
second = 59
PosX = -- Position X here
PosY = -- Position Y here
maps = {
[1] = "MAP1_NAME",
[2] = "MAP2_NAME",
[3] = "MAP3_NAME",
}
function CountTimeHUD()
	second = second - 1
	if second >= 59 then
		minute = minute - 1
		if minute == 00 then
			parse("changemap " .. maps[math.random(1, #maps)])
		end
	end
	parse('hudtxt 0 "\169255255255Changemap till: " .. minute .. ":" .. second .. " " .. PosX .. " " .. PosY .. " 0')
end
function startround_()
	minute = 60
	second = 59
end
addhook("startround","startround_")
addhook("second","CountTimeHUD")
GeoB99: I will try it, Thanks you!
mp_timelimit 60! The list of maps has to be saved in sys/mapcycle.cfg. Done.
DC:
Hajt has written
Rygna: You don't need to use Lua to change map every 60 minutes. Have a look at this
mp_timelimit and a file mapcycle.cfg in your sys folder.
minute = 60
second = 59
PosX = 40
PosY = 40
maps = {
[1] = "rp_amstria_v0.4",
[2] = "MAP2_NAME",
[3] = "MAP3_NAME",
}
function CountTimeHUD()
second = second - 1
if second >= 59 then
minute = minute - 1
if minute == 00 then
parse("changemap " .. maps[math.random(1, #maps)])
end
end
parse('hudtxt 0 "\169255255255Changemap till: '..minute..' '..second..'" 40 40 0')
end
function startround_()
minute = 60
second = 59
end
addhook("startround","startround_")
addhook("second","CountTimeHUD")
hudtxt parameters.
1
