local texto_na_tela = "" local tempo_restante = 0 -- Registra "!mensagem" no console e restringe apenas para Admins/Servidor (COM_ADMIN) COM_AddCommand("!mensagem", function(player, ...) local args = {...} if #args == 0 then CONS_Printf(player, "Uso: !mensagem ") return end -- Junta todas as palavras digitadas em uma Ășnica frase texto_na_tela = table.concat(args, " ") -- Tempo na tela: 5 segundos (5 * 35 tics) tempo_restante = 5 * TICRATE end, COM_ADMIN) -- Conta o tempo regressivo addHook("ThinkFrame", function() if tempo_restante > 0 then tempo_restante = tempo_restante - 1 end end) -- Exibe o texto na tela de todos os jogadores hud.add(function(v) if tempo_restante > 0 and texto_na_tela ~= "" then v.drawString(160, 80, texto_na_tela, V_YELLOWMAP|V_ALLOWLOWERCASE, "center") end end, "game")