1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
local servers = {
	["ServerLove # Fuja do Jason"] = "54.233.209.6:61501",
	["IRAN TOWN"] = "86.105.52.209:36965",
	["-[IFwsI]- Jail"] = "89.40.113.103:20000"
}
------------------------------------------------------------------------------
-- Module API
------------------------------------------------------------------------------
function hc.reroute.init()
	hc.add_menu_command("CS2D Re-Route", hc.reroute.reroute_menu_command, hc.REROUTE_LEVEL, hc.COMMAND_MENU_KEY)
	
hc.add_say_command("server", hc.reroute.reroute_say_command, hc.REROUTE_LEVEL, "", "Command description")
end
-------------------------------------------------------------------------------
-- Say commands
-------------------------------------------------------------------------------
function hc.reroute.reroute_say_command(p)
hc.reroute.reroute_menu_command(p)
end
-------------------------------------------------------------------------------
-- Menu commands
-------------------------------------------------------------------------------
function hc.reroute.reroute_menu_command(p)
	local t = {}
	local id = 1
	
for server in pairs(servers) do
t[id] = server
id = id + 1
end
	hc.show_menu(p, "Servers",t,
function(p, id, item)
			parse("reroute "..p.." "..servers[item])
end)
end