shape1
shape2
shape3
shape4
shape7
shape8

Система


Gl34555

Новичок
Пользователь
14.08.2021
1
0
0
Здраствуйте ищу систему даты и времени у администраторов как на радмире (прикрепил фото системы)

IMG_20210819_100635.jpg

 

Cocolemunto

Чёрный список
11.06.2021
416
3
55
0
14
ко всем new

new Text:Clock;
new Text:Date; (там : и Date new Text : Date)

к форвардам

forward Inform(playerid);

Добавляем в public OnGameModeInit()

PHP:
Clock = TextDrawCreate(547.000000,29.000000, "00:00"); //это создает тестдрайвер
TextDrawLetterSize(Clock,0.5,1.5); //размер шрифта
TextDrawFont(Clock,0); //стиль шрифта
TextDrawColor(Clock,0xffffffff); //цвет
TextDrawSetOutline(Clock,1); //дата
Date = TextDrawCreate(547.000000,45.000000, "26.06.2011");//это создает тестдрайвер
TextDrawLetterSize(Clock,0.5,1.5); //размер шрифта
TextDrawFont(Date,0); //стиль шрифта
TextDrawColor(Date,0xffffffff); //цвет
TextDrawSetOutline(Date,1);
SetTimer("Inform", 10000, 1); //время через которое подключятся часы и дата

public OnPlayerConnect(playerid) добавим

TextDrawShowForPlayer(playerid,Clock);
TextDrawShowForPlayer(playerid,Date);

теперь создаем сам Public

PHP:
public Inform()
{
    //time
    new hour,minute,second;
    gettime(hour,minute,second);
    new string[256];
    new string2[256];
    format(string, sizeof(string), "%02d:%02d", hour, minute);
    //date
    new day,month,year;
    getdate(year,month,day);
    format(string2, sizeof(string2), "%02d.%02d.%d",day,month,year);
    SetWorldTime( hour );
    for(new i=0;i<MAX_PLAYERS;i++)
    {
        TextDrawSetString(Clock,string);
        TextDrawSetString(Date,string2);
        TextDrawShowForPlayer(i,Clock);
        TextDrawShowForPlayer(i,Date);
    }
    return 1;
}

Ну и проверку на админку бахни