PDA

View Full Version : [LScript] Digital Clock



utopiah
10th November 2006, 17:41
this is an easy piece of code for people who want a clock in their game


function drawDigitalClock(Canvas)

time = os.date("%I:%M:%S")

Canvas.Font = Canvas.TinyFont
Canvas.SetDrawColor(255, 0, 0, 255)
Canvas.SetPos(10, 10)
Canvas.DrawText(time)

end

you have to call this function in your postrender

utopiah

SaTaNa
10th November 2006, 19:12
thx for this snippet ...

mike5a2
10th November 2006, 21:16
this may be an interesting question but would someone ban you for having a clock ingame? like if they got a pbss of this

utopiah
10th November 2006, 21:51
i bet they will because they know there is no legit way to get this clock in game

SaTaNa
10th November 2006, 23:16
i bet they will because they know there is no legit way to get this clock in game

yes they can ban u for clock (PBSS) but one person can decide if put code on his source or not :P