samp.directory
← Скрипты и библиотеки

LuminouZ307/samp-loadingbar

LoadingBar for SA:MP

Библиотека★ 8обновлён март 2022 г.Без лицензииPawnsampctl
Открыть на GitHub

В этом репозитории нет файла лицензии. Код открыт для чтения, но само по себе это не даёт права использовать его.

Установка через sampctl

sampctl package install LuminouZ307/samp-loadingbar

Выполните в папке проекта. sampctl скачает пакет и его зависимости.

Зависит от 1 пакета

README.md

samp-loadingbar

Installation

Simply install to your project:

sampctl package install LuminouZ307/samp-loadingbar

Include in your code and begin using the library:

#include <samp-loadingbar>

Usage

Functions

  • StartPlayerLoadingBar(playerid, value = 3, const text[] = "_", interval = 1000, const callback[] = EOS, color = 1687547311) :

    • Create player a LoadingBar

    • playerid = The player ID you wan't to show the LoadingBar.

    • value = The maximum value for the LoadingBar.

    • text = The text when LoadingBar showed.

    • interval = The uLoadingBar update interval.

    • callback = The function/callback that called when the LoadingBar finished.

    • color = The color for LoadingBar (default are 1687547311, you can use color format like '0xFF0000FF').

  • StopPlayerLoadingBar(playerid) :

    • Stop current player LoadingBar (if exists).
  • IsValidLoadingBar(playerid) :

    • Check if player have active LoadingBar or no.

Callbacks

  • OnLoadingBarProgress(playerid, value) :

    • Detect every LoadingBar value updated.
    • value = current value when updated.
  • OnLoadingBarFinished(playerid) :

    • Detect when current player LoadingBar finished.

Testing

To test, simply run the package:

sampctl package run

Страница собрана из того, что GitHub публикует о репозитории. samp.directory не хранит этот код. Сообщить о проблеме с этой записью