- Статус
- Оффлайн
- Регистрация
- 31 Дек 2018
- Сообщения
- 441
- Реакции
- 211
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Credits: @prince1337
Link:
Код:
local font = Render.InitFont("Verdana", 12)
local hitlogs = {}
Cheat.RegisterCallback("events", function(e)
if e:GetName() ~= "item_purchase" then return end
local name = EntityList.GetPlayerForUserID(e:GetInt("userid", 0)):GetName()
local buy = e:GetString("weapon", "");
text = string.format("%s bought %s", name, buy)
table.insert(hitlogs, {text = text, time = GlobalVars.realtime})
end)
Cheat.RegisterCallback("draw", function()
local x, y = 5, 5
for i, hitlog in ipairs(hitlogs) do
Render.Text(hitlog.text, Vector2.new(x, y), Color.new(1, 1, 1), 12, font, true)
y = y + 15
if hitlog.time + 5 < GlobalVars.realtime then table.remove(hitlogs, i) end
end
end)
Пожалуйста, авторизуйтесь для просмотра ссылки.