← Scripts e bibliotecas
PerseweratywneImponderabilia/samp-itemtasks
API for simple tasks using Southclaw's item system
Biblioteca★ 1atualizado nov. de 2022Sem licençaPawnsampctl
Abrir no GitHubEste repositório não tem arquivo de licença. Ele é público para leitura, mas isso sozinho não dá permissão para reutilizar.
Instalar com o sampctl
sampctl package install PerseweratywneImponderabilia/samp-itemtasks
Execute na pasta do seu projeto. O sampctl baixa o pacote e as dependências dele.
Depende de 4 pacotes
- pawn-lang/samp-stdlib★ 53
- ScavengeSurvive/item★ 7
- pawn-lang/YSI-Includes★ 226
- illidans4/pawnplusnão está neste diretório
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
Esta página é montada com o que o GitHub publica sobre o repositório. O samp.directory não hospeda o código. Avisar de um problema com esta página