1
0
mirror of https://github.com/TeTpaAka/quests.git synced 2025-01-22 16:00:46 +01:00
quests/central_message.lua

13 lines
382 B
Lua
Raw Normal View History

2025-01-18 08:02:59 +01:00
if (core.global_exists("cmsg")) then
function quests.show_message(t, playername, text)
if (quests.hud[playername].central_message_enabled) then
local player = core.get_player_by_name(playername)
cmsg.push_message_player(player, text, quests.colors[t])
core.sound_play("quests_" .. t, {to_player = playername})
end
end
else
function quests.show_message(...)
end
end