samp.directory
← Skrypty i biblioteki

pawno-labs/samp-vehicle-components-library

Brak opisu na GitHubie.

Biblioteka★ 5zaktualizowano kwi 2019MITPawnsampctl
Otwórz na GitHubie

Zainstaluj za pomocą sampctl

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

Uruchom to w folderze swojego projektu. sampctl pobiera pakiet i to, od czego zależy.

Wypróbuj w kompilatorze Pawn →

Dodaje jej pliki include, razem z bibliotekami, od których zależy, do kompilatora Pawn w twojej przeglądarce, gotowe do dołączenia w skrypcie.

Zależy od 1 pakietu

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

Ta strona jest zbudowana z tego, co GitHub publikuje o repozytorium. samp.directory nie hostuje kodu. Zgłoś problem z tym wpisem

pawno-labs/samp-vehicle-components-library: Biblioteka SA-MP | samp.directory