--by pavetr.top/ds local g=Color(240,134,80) surface.CreateFont("playedtime",{font="Roboto",size=20}) local h=ScrW() local obkaktime = CurTime() local OldGameDetails = GameDetails function GameDetails( servername, serverurl, mapname, maxplayers, steamid, gamemode ) obkaktime = CurTime() OldGameDetails( servername, serverurl, mapname, maxplayers, steamid, gamemode ) end hook.Add("DrawOverlay","playedtime",function() local f="played "..string.NiceTime(CurTime()-obkaktime) surface.SetFont("playedtime") local i,j=surface.GetTextSize(f) draw.RoundedBox(0,h-i-25,50,i+10,30,exec_cfg_GetValue("STYLE_WINDOWBG")) draw.RoundedBox(0,h-i-24,126-50,i+8,3,g) draw.SimpleText(f,"playedtime",h-i-20,50+3,exec_cfg_GetValue("STYLE_TEXT")) surface.SetDrawColor(exec_cfg_GetValue("STYLE_TEXT")) surface.DrawOutlinedRect(h-i-25,50,i+10,30,1,410760) end)