Merge Game, FlyingText, Common and table

This commit is contained in:
Cooldude2606
2024-09-30 22:32:35 +01:00
parent 3145f7e904
commit f8c74c9dd3
66 changed files with 817 additions and 2035 deletions

View File

@@ -364,9 +364,11 @@ function Commands.print(message, color, sound)
if not player then
rcon.print(ExpUtil.format_any(message))
else
local formatted = ExpUtil.format_any(message, nil, 20)
player.print(formatted, color or Color.white)
player.play_sound{ path = sound or "utility/scenario_message" }
local formatted = ExpUtil.format_any(message, { max_line_count = 20 })
player.print(formatted, {
color = color or Color.white,
sound_path = sound or "utility/scenario_message",
})
end
end