Only when players came at them this error got out.
Some were fine,some weren't.
P. S - sv_physics down.
Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Day = {} Day.Time = 300 Day.Seconds = 0 Day.Day = true Day.Night = false parse("sv_daylighttime " .. Day.Time) function main.second() Day.Seconds = Day.Seconds + 1 if Day.Time > 170 and Day.Time < 300 then Day.Day = true Day.Night = false end if Day.Time > 300 or Day.Time < 170 then Day.Day = false Day.Night = true end if Day.Seconds == 2 and Day.Day then Day.Seconds = 0 Day.Time = Day.Time + 1 parse("sv_daylighttime " .. Day.Time) for i,id in pairs(player(0,"table")) do parse("hudtxt2 " .. id .. ' 2 "' .. "' " .. Day.Time .. " ' Day" .. ' " ' .. player(id,"screenw") / 2 .. " " .. player(id,"screenh") - 20 .. " 1 1 20" ) end end if Day.Seconds == 1 and Day.Night then Day.Seconds = 0 Day.Time = Day.Time + 1 parse("sv_daylighttime " .. Day.Time) for i,id in pairs(player(0,"table")) do parse("hudtxt2 " .. id .. ' 2 "' .. "' " .. Day.Time .. " ' Night" .. '" ' .. player(id,"screenw") / 2 .. " " .. player(id,"screenh") - 20 .. " 1 1 20" ) end end if Day.Time > 360 then Day.Time = 0 end end