Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function UpDateTime()
- hour,minute=GetTime();
- SetServerDescription("Время: " .. hour ..":".. minute .. "\n" .. "Версия мода: " .. version .. "\n" .. "Режим: Role Play" .. "\n" .. "Локация: Хоринис");
- local stime="";
- if hour >22 or hour<6 then
- stime="Ночь";
- elseif hour>=6 and hour<13 then
- stime="Утро";
- elseif hour>=13 and hour<18 then
- stime="День";
- elseif hour>=18 and hour<=22 then
- stime="Вечер";
- end
- if minute<10 then
- UpdateDraw(clockg,6400, 7850,string.format("%s %d%s%d",stime,hour,":0",minute),"FONT_OLD_10_WHITE_HI.TGA",255,255,255);
- else
- UpdateDraw(clockg,6400, 7850,string.format("%s %d%s%d",stime,hour,":",minute),"FONT_OLD_10_WHITE_HI.TGA",255,255,255);
- end
- UpdateDraw(clockr,6400,7600,os.date("RT: %d/%m/%Y %X"),"FONT_OLD_10_WHITE_HI.TGA",255,255,255);
- --[[if hour==0 and (minute==0 or minute==1) then
- if changing_day==0 then
- changing_day=1;
- SetTimer("DateUpdate",10000,0);
- end
- end]]
- local maxp=GetMaxPlayers();
- if maxp~=0 then
- for i=0, maxp-1 do
- --ShowDraw(i,dateg);
- ShowDraw(i,clockg);
- ShowDraw(i,clockr);
- ShowTexture(i,clockback);
- end
- end
- --SaveWorld();
- --UpdateDraw(dateg,6400, 7850,string.format("%d %s %d",day,months[month],year),"FONT_OLD_10_WHITE_HI.TGA",255,255,255);
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement