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

pawno-labs/samp-vehicle-components-library

На GitHub нет описания.

Библиотека★ 5обновлён апр. 2019 г.MITPawnsampctl
Открыть на GitHub

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

sampctl package install pawno-labs/samp-vehicle-components-library

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

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

README.md

Vehicle Components Library

This library add a new functions, which help find compatible upgrades.

Installation

Simply install to your project:

sampctl package install pawno-labs/samp-vehicle-components-library

Include in your code and begin using the library:

#include <components>

Usage

public OnVehicleMod(playerid, vehicleid, componentid)
{
    new modelid = GetVehicleModel(vehicleid);

    if (IsVehicleUpgradeCompatible(modelid, componentid))
    {
        new
            name[64],
            string[144];

        GetVehicleComponentName(componentid, name, sizeof(name));

        format(string, sizeof(string), "You have successfully installed \"%s\"", name);
        SendClientMessage(playerid, -1, string);
    }
    return 1;
}

Testing

To test, simply run the package:

sampctl package run

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

pawno-labs/samp-vehicle-components-library: Библиотека для SA-MP | samp.directory