samp.directory
← Betikler ve kütüphaneler

bwhitmire55/samp-snapshots

GitHub’da açıklama yok.

Kütüphane★ 3Mar 2021 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 bwhitmire55/samp-snapshots

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

1 pakete bağımlı

README.md

samp-snapshots

Functional snapshots as seen in the single player

Installation

Simply install to your project:

sampctl package install bwhitmire55/samp-snapshots

Include in your code and begin using the library:

#include <snapshots>

Functions

/*
PARAMS:
    Float: x    - x coordinate of snapshot
    Float: y    - y coordinate of snapshot
    Float: z    - z coordinate of snapshot

RETURNS:
    Snapshot ID on success, otherwise 0
*/
stock Snapshot_Create(Float: x, Float: y, Float: z);
/*
PARAMS:
    id  - The snapshot ID to destroy

RETURNS:
    1 on success, otherwise 0
*/
stock Snapshot_Destroy(id);

Callbacks

/*
PARAMS:
    playerid    - The player ID who attempted a snapshot (took a picture with a camera)
*/
public Snapshot_OnPlayerAttempt(playerid);
/*
PARAMS:
    playerid    - The player ID who hit a snapshot
    snapshotid  - The snapshot hit
*/
public Snapshot_OnPlayerHit(playerid, snapshotid);

Macros

// Maximum number of snapshots
#if !defined SNAPSHOT_MAX_SNAPSHOTS
    #define SNAPSHOT_MAX_SNAPSHOTS      (10)
#endif

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