Forum

> > CS2D > Scripts > time script
Forums overviewCS2D overview Scripts overviewLog in to reply

English time script

1 reply
To the start Previous 1 Next To the start

old time script

vader
User Off Offline

Quote
1
if os.date('%p')=='pm' then parse('hudtxt 9 "©000000255PM" 51 64 1') else parse('hudtxt 9 "©255000000AM" 51 64 1') end
why it's always huding AM ?..

old Re: time script

MikuAuahDark
User Off Offline

Quote
1
if os.date('%p'):lower()=='pm' then parse('hudtxt 9 "©000000255PM" 51 64 1') else parse('hudtxt 9 "©255000000AM" 51 64 1') end

Note: Operator "==" at LUA on string is case sensitive.
The actual value is "PM" NOT "pm"
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview