поправлен цикл
This commit is contained in:
parent
5f52b7f364
commit
7ca4f6bf87
64
hlna.py
64
hlna.py
@ -250,39 +250,39 @@ def config_maps(i):
|
||||
if 0 < amount_map <= 12:
|
||||
break
|
||||
|
||||
if list_config:
|
||||
port_s, query_p, rcon_p = ports_array()
|
||||
else:
|
||||
port_s = query_p = rcon_p = []
|
||||
if list_config:
|
||||
port_s, query_p, rcon_p = ports_array()
|
||||
else:
|
||||
port_s = query_p = rcon_p = []
|
||||
|
||||
if amount_map == 1:
|
||||
map_s = "TheIsland"
|
||||
elif amount_map == 2:
|
||||
map_s = "TheCenter"
|
||||
elif amount_map == 3:
|
||||
map_s = "ScorchedEarth_P"
|
||||
elif amount_map == 4:
|
||||
map_s = "Ragnarok"
|
||||
elif amount_map == 5:
|
||||
map_s = "Aberration_P"
|
||||
elif amount_map == 6:
|
||||
map_s = "Extinction"
|
||||
elif amount_map == 7:
|
||||
map_s = "Valguero_P"
|
||||
elif amount_map == 8:
|
||||
map_s = "Genesis"
|
||||
elif amount_map == 9:
|
||||
map_s = "CrystalIsles"
|
||||
elif amount_map == 10:
|
||||
map_s = "Gen2"
|
||||
elif amount_map == 11:
|
||||
map_s = "LostIsland"
|
||||
elif amount_map == 12:
|
||||
map_s = "Fjordur"
|
||||
else:
|
||||
# Если вдруг каким-то боком проверка не отработает и не будет нужной цифры
|
||||
map_s = 'TheIsland'
|
||||
return map_s, port_s, query_p, rcon_p
|
||||
if amount_map == 1:
|
||||
map_s = "TheIsland"
|
||||
elif amount_map == 2:
|
||||
map_s = "TheCenter"
|
||||
elif amount_map == 3:
|
||||
map_s = "ScorchedEarth_P"
|
||||
elif amount_map == 4:
|
||||
map_s = "Ragnarok"
|
||||
elif amount_map == 5:
|
||||
map_s = "Aberration_P"
|
||||
elif amount_map == 6:
|
||||
map_s = "Extinction"
|
||||
elif amount_map == 7:
|
||||
map_s = "Valguero_P"
|
||||
elif amount_map == 8:
|
||||
map_s = "Genesis"
|
||||
elif amount_map == 9:
|
||||
map_s = "CrystalIsles"
|
||||
elif amount_map == 10:
|
||||
map_s = "Gen2"
|
||||
elif amount_map == 11:
|
||||
map_s = "LostIsland"
|
||||
elif amount_map == 12:
|
||||
map_s = "Fjordur"
|
||||
else:
|
||||
# Если вдруг каким-то боком проверка не отработает и не будет нужной цифры
|
||||
map_s = 'TheIsland'
|
||||
return map_s, port_s, query_p, rcon_p
|
||||
|
||||
|
||||
def config_nameserver(map_s):
|
||||
|
Loading…
Reference in New Issue
Block a user