Merge pull request #34 from vecchiotom/master

fix names with color codes coloring the whole console output.
This commit is contained in:
リーフストーム
2018-10-27 10:44:26 +02:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ AddEventHandler('_chat:messageEntered', function(author, color, message)
TriggerClientEvent('chatMessage', -1, author, { 255, 255, 255 }, message)
end
print(author .. ': ' .. message)
print(author .. '^7: ' .. message .. '^7')
end)
AddEventHandler('__cfx_internal:commandFallback', function(command)
@@ -76,4 +76,4 @@ AddEventHandler('onServerResourceStart', function(resName)
for _, player in ipairs(GetPlayers()) do
refreshCommands(player)
end
end)
end)

View File

@@ -20,7 +20,7 @@ end)
AddEventHandler('playerConnecting', function(name, setReason)
local cv = GetConvarInt('sv_maxclients', 32)
print('Connecting: ' .. name)
print('Connecting: ' .. name .. '^7')
if playerCount >= cv then
print('Full. :(')