Kütüphane★ 5Nis 2019 güncellendiMITPawnsampctl
GitHub’da açsampctl ile kur
sampctl package install pawno-labs/samp-vehicle-components-library
Bunu proje klasöründe çalıştır. sampctl paketi ve bağımlı olduklarını indirir.
1 pakete bağımlı
- sampctl/samp-stdlibbu dizinde değil
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
Bu sayfa GitHub’ın depo hakkında yayımladıklarından oluşturulur. samp.directory kodu barındırmaz. Bu ilanla ilgili bir sorun bildir