← Betikler ve kütüphaneler
medzvel/samp-job-framework
framework for easily creating jobs in sa-mp | WIP
Kütüphane★ 4Oca 2019 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 medzvel/samp-job-framework
Bunu proje klasöründe çalıştır. sampctl paketi ve bağımlı olduklarını indirir.
2 pakete bağımlı
- sampctl/samp-stdlibbu dizinde değil
- pawn-lang/YSI-Includes★ 226
README.md
samp-job-framework
Job Framework - Create Jobs Easily
Installation
sampctl
Simply install to your project:
sampctl package install medzvel/samp-job-framework
Include in your code and begin using the library:
#include <jobframework>
non-sampctl
Download that repository or git clone it, then copy/cut file jobframework.inc and job_framework folder and place them into pawno/includes directory
Include in your code and begin using the library:
#include <jobframework>
Usage
GLOBAL FUNCTIONS
JobType:DefineJobType(jTypWorkerStatus[], jTypPayment, jTypPickupID = 1239);CreateJob(jobName[], JobType:jType, Float:jPosition_X, Float:jPosition_Y, Float:jPosition_Z);CountJobWorkers(jobID);GetJobPayment(jobID);GetJobName(jobID, output[], len = sizeof(output));GetJobWorkerStatus(jobID, output[], len = sizeof(output));JobsCreated();
PLAYER FUNCTIONS
SetPlayerJob(playerid, jobid);GetPlayerJob(playerid);RemovePlayerFromJob(playerid);
CALLBACKS
forward OnJobCreate(jobID, Float:jPos_X, Float:jPos_Y, Float:jPos_Z);- Called afterCreateJobfunctionforward OnPlayerPickupJobPickup(playerid, jobID);Called after a player pick ups job pickupforward OnPlayerGetNewJob(playerid, jobID);Called afterSetPlayerJobfunctionforward OnPlayerRemoveFromJob(playerid, jobID);Called afterRemovePlayerFromJobfunction
Testing
sampctl package get medzvel/samp-job-framework
sampctl package build --forceEnsure
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