samp.directory
← Skrypty i biblioteki

PerseweratywneImponderabilia/samp-itemtasks

API for simple tasks using Southclaw's item system

Biblioteka★ 1zaktualizowano lis 2022Brak licencjiPawnsampctl
Otwórz na GitHubie

To repozytorium nie ma pliku licencji. Jest publiczne do odczytu, ale samo to nie daje pozwolenia na ponowne użycie.

Zainstaluj za pomocą sampctl

sampctl package install PerseweratywneImponderabilia/samp-itemtasks

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 4 pakietów

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

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

PerseweratywneImponderabilia/samp-itemtasks: Biblioteka SA-MP | samp.directory