Новое на форуме

Время дня

mexan

Администратор
Сообщения
316
Симпатии
18
#1
description.ext
Код:
class Params
{
  class TimeOfDay {
    title = "Time of Day";
    values[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23};
    texts[] = {"0000","0100","0200","0300","0400","0500","0600","0700","0800","0900","1000","1100","1200","1300","1400","1500","1600","1700","1800","1900","2000","2100","2200","2300"};
    default = 16;
  };
};
init.sqf
Код:
skiptime (((paramsarray select 0) - daytime + 24) % 24);
 
Сверху