Aurum

Часы ( Время + Дата ).

В теме 3 сообщения

Простенькая работа.

Может кто заберет :$

 

Скрин: клац

 

Код работы:

Спойлер


//Player Textdraws:

new PlayerText:Textdraw0[MAX_PLAYERS];
new PlayerText:Textdraw1[MAX_PLAYERS];
new PlayerText:Textdraw2[MAX_PLAYERS];
new PlayerText:Textdraw3[MAX_PLAYERS];
new PlayerText:Textdraw4[MAX_PLAYERS];
new PlayerText:Textdraw5[MAX_PLAYERS];


Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 611.954772, 142.854843, "usebox");
PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.000000, 4.751433);
PlayerTextDrawTextSize(playerid, Textdraw0[playerid], 517.095031, 0.000000);
PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw0[playerid], 0);
PlayerTextDrawUseBox(playerid, Textdraw0[playerid], true);
PlayerTextDrawBoxColor(playerid, Textdraw0[playerid], 102);
PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 0);
PlayerTextDrawFont(playerid, Textdraw0[playerid], 0);

Textdraw1[playerid] = CreatePlayerTextDraw(playerid, 535.384216, 141.354827, "CLOCK");
PlayerTextDrawLetterSize(playerid, Textdraw1[playerid], 0.472443, 1.310967);
PlayerTextDrawAlignment(playerid, Textdraw1[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw1[playerid], -1);
PlayerTextDrawSetShadow(playerid, Textdraw1[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw1[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw1[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw1[playerid], 2);
PlayerTextDrawSetProportional(playerid, Textdraw1[playerid], 1);

Textdraw2[playerid] = CreatePlayerTextDraw(playerid, 530.678283, 153.999923, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, Textdraw2[playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, Textdraw2[playerid], 68.416290, -0.451599);
PlayerTextDrawAlignment(playerid, Textdraw2[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw2[playerid], -1);
PlayerTextDrawSetShadow(playerid, Textdraw2[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw2[playerid], 0);
PlayerTextDrawFont(playerid, Textdraw2[playerid], 4);

Textdraw3[playerid] = CreatePlayerTextDraw(playerid, 548.416442, 154.451629, "12:34");
PlayerTextDrawLetterSize(playerid, Textdraw3[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Textdraw3[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw3[playerid], -1);
PlayerTextDrawSetShadow(playerid, Textdraw3[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw3[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw3[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw3[playerid], 0);
PlayerTextDrawSetProportional(playerid, Textdraw3[playerid], 1);

Textdraw4[playerid] = CreatePlayerTextDraw(playerid, 532.126525, 172.967727, "12.12.2017");
PlayerTextDrawLetterSize(playerid, Textdraw4[playerid], 0.327284, 1.288387);
PlayerTextDrawAlignment(playerid, Textdraw4[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw4[playerid], -1);
PlayerTextDrawSetShadow(playerid, Textdraw4[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw4[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw4[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw4[playerid], 2);
PlayerTextDrawSetProportional(playerid, Textdraw4[playerid], 1);

Textdraw5[playerid] = CreatePlayerTextDraw(playerid, 532.126708, 170.709686, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, Textdraw5[playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, Textdraw5[playerid], 65.520385, -0.451599);
PlayerTextDrawAlignment(playerid, Textdraw5[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw5[playerid], -1);
PlayerTextDrawSetShadow(playerid, Textdraw5[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw5[playerid], 0);
PlayerTextDrawFont(playerid, Textdraw5[playerid], 4);

 

плус пж пж пж пж пж xD

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

щас довольно не плохо 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
8 часов назад, MuhammadPawn сказал:

щас довольно не плохо 

:D Спасибо

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Для публикации сообщений создайте учётную запись или авторизуйтесь

Вы должны быть пользователем, чтобы оставить комментарий

Создать учетную запись

Зарегистрируйте новую учётную запись в нашем сообществе. Это очень просто!


Регистрация нового пользователя

Войти

Уже есть аккаунт? Войти в систему.


Войти

  • Последние посетители   0 пользователей онлайн

    Ни одного зарегистрированного пользователя не просматривает данную страницу

  • Похожий контент

    • bogdanov
      От bogdanov
      Возможно ли добавить свой скин не заменяя старого? Тоесть новая моделька со своим названием и тд? Как это можно сделать
    • frosjkee
      От frosjkee
      Как и где устанавливаются параметры чтобы игрок не падал с транспорта? например: Автомобиль пикап для выезда на капты, использую нестандартные модели и думаю где-то можно указывать параметр скольжения
    • dfhfyyjftyfthtj
      От dfhfyyjftyfthtj
      Может кто-нибудь скинуть файл bitcoin.php? или ссылку на сайт, где обновляется его стоимость. Нужно для системы ниже

       
      stock CryptoUpdate_BitCoin() {     return HTTP(0xD00D, HTTP_GET, "wh16582.web1.maze-host.ru/bitcoin.php", "", "GetCrypto_BitCoin"); } stock CryptoLoad_BitCoin() {     print("[BITCOIN API] Обновление стоимости Bitcoin...");     print(" ");     return HTTP(0xD00D, HTTP_GET, "wh16582.web1.maze-host.ru/bitcoin.php", "", "LoadCrypto_BitCoin"); } forward LoadCrypto_BitCoin(index, response_code, data[]); public LoadCrypto_BitCoin(index, response_code, data[]) {     if(response_code == 200 && strval(data))     {         banksellbitcoin = strval(data);         bankbuybitcoin = strval(data) - random(1500);         printf("[BITCOIN API] Успешно загружено, цена на 1 Bitcoin: %d и цена покупки 1 Bitcoin: %d", banksellbitcoin, bankbuybitcoin);     }     else     {         banksellbitcoin = randomEx(32000, 40000);         bankbuybitcoin = banksellbitcoin - random(1500);         printf("[BITCOIN API] Не удалось установить соединение с сайтом, цена на 1 Bitcoin: %d и цена покупки 1 Bitcoin: %d", banksellbitcoin, bankbuybitcoin);     }     return 1; }  
    • dfhfyyjftyfthtj
      От dfhfyyjftyfthtj
      Добавил новую валюту (btc) на сервер и хочу сделать, чтоб он рос и падал эквивалентно настоящему курсу биткоина, но не могу понять как это реализовать. Подскажите пожалуйста, буду очень благодарен.
    • Danya_Lucky
      От Danya_Lucky
      Как сделать метку и захватывать особняки на мафии радмира можно код? покажу как выглядит с низу ссылка подскажите https://imgur.com/qQUCaHk