samp.directory
← Skripte und Bibliotheken

pawno-labs/samp-vehicle-components-library

Keine Beschreibung auf GitHub.

Bibliothek★ 5aktualisiert Apr. 2019MITPawnsampctl
Auf GitHub öffnen

Mit sampctl installieren

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

Führe das in deinem Projektordner aus. sampctl lädt das Paket und alles herunter, wovon es abhängt.

Im Pawn-Compiler ausprobieren →

Fügt seine Include-Dateien samt der Bibliotheken, von denen es abhängt, dem Pawn-Compiler in deinem Browser hinzu, bereit zum Einbinden in ein Skript.

Hängt von 1 Paket ab

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

Diese Seite wird aus dem erstellt, was GitHub über das Repository veröffentlicht. samp.directory hostet den Code nicht. Ein Problem mit diesem Eintrag melden

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