samp.directory
← Betikler ve kütüphaneler

PerseweratywneImponderabilia/samp-itemtasks

API for simple tasks using Southclaw's item system

Kütüphane★ 1Kas 2022 güncellendiLisans yokPawnsampctl
GitHub’da aç

Bu deponun lisans dosyası yok. Okumak için herkese açık, ama bu tek başına yeniden kullanma izni vermez.

sampctl ile kur

sampctl package install PerseweratywneImponderabilia/samp-itemtasks

Bunu proje klasöründe çalıştır. sampctl paketi ve bağımlı olduklarını indirir.

4 pakete bağımlı

README.md

samp-itemtasks

API for simple tasks using Southclaw's item system. We use it on our server for simple quests where you have to find and bring a few items to get a reward.

Installation

Simply install to your project:

sampctl package install mysy00/samp-itemtasks

Include in your code and begin using the library:

#include <itemtasks>

Usage

forward ItemTasks_DefineItemType(ItemType:itemtype, reward);
forward ItemType:ItemTasks_GetItemTypeByIndex(index);
forward ItemTasks_GetTotalDefinedItems();
forward ItemTasks_GetItemTypeReward(ItemType:itemtype);

forward Player_SetItemTask(playerid);
forward ItemTasks_CompletePlayerTask(playerid);
forward bool:ItemTasks_HasPlayerActiveTask(playerid);
forward OnPlayerCompleteTask(playerid, totalReward);

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