mirror of
https://github.com/a-bad-dev/simple-shooter-game.git
synced 2026-06-09 20:36:15 +00:00
parent
0a9e885e21
commit
7a69ef1351
2 changed files with 4 additions and 5 deletions
|
|
@ -13,9 +13,9 @@ core.register_chatcommand("start", {
|
||||||
return false, "-!- Match is already in progress!"
|
return false, "-!- Match is already in progress!"
|
||||||
end
|
end
|
||||||
|
|
||||||
start_match(param)
|
local sucess = start_match(param)
|
||||||
|
|
||||||
if map_data == nil then
|
if map_data == "nope :(" then
|
||||||
return false, "-!- Map not found!"
|
return false, "-!- Map not found!"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
-- Maps mod for SSG
|
-- Maps mod for SSG
|
||||||
|
|
||||||
local map_path = core.get_modpath("maps") .. "/maps/"
|
local map_path = core.get_modpath("maps") .. "/maps/"
|
||||||
map_data = nil
|
map_data = {}
|
||||||
|
|
||||||
map_list = core.get_dir_list(map_path, true)
|
map_list = core.get_dir_list(map_path, true)
|
||||||
table.sort(map_list)
|
table.sort(map_list)
|
||||||
|
|
@ -14,8 +14,7 @@ function place_map(map)
|
||||||
map_pos = vector.new(1000 * (i - 1), 0, 0)
|
map_pos = vector.new(1000 * (i - 1), 0, 0)
|
||||||
break
|
break
|
||||||
elseif i == #map_list then
|
elseif i == #map_list then
|
||||||
map_data = nil
|
return nil
|
||||||
return
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue