mirror of
https://github.com/a-bad-dev/simple-shooter-game.git
synced 2026-06-08 20:12:11 +00:00
Add even more new stuff
This commit is contained in:
parent
fdfbf561d6
commit
42663612a2
4 changed files with 36 additions and 21 deletions
|
|
@ -44,11 +44,10 @@ core.register_chatcommand("list_maps", {
|
|||
privs = {match_manager = true},
|
||||
description = "List all maps",
|
||||
func = function()
|
||||
local maps = core.get_dir_list(core.get_modpath("maps") .. "/maps", true)
|
||||
local map_list = "Available maps:\n"
|
||||
for _, map in pairs(maps) do
|
||||
map_list = map_list .. map .. "\n"
|
||||
local list_string = "Available maps:\n"
|
||||
for _, map in pairs(map_list) do
|
||||
list_string = list_string .. map .. "\n"
|
||||
end
|
||||
return true, map_list .. "\nUse /start <map> to start a match."
|
||||
return true, list_string .. "\nUse /start <map> to start a match."
|
||||
end
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue