samp.directory
← Scripts et bibliothèques

bwhitmire55/samp-snapshots

Pas de description sur GitHub.

Bibliothèque★ 3mis à jour mars 2021Pas de licencePawnsampctl
Ouvrir sur GitHub

Ce dépôt n’a pas de fichier de licence. Il est public en lecture, mais cela ne donne pas à lui seul le droit de le réutiliser.

Installer avec sampctl

sampctl package install bwhitmire55/samp-snapshots

Lance ceci dans le dossier de ton projet. sampctl télécharge le paquet et ce dont il dépend.

L’essayer dans le compilateur Pawn →

Ajoute ses fichiers include, avec les bibliothèques dont il dépend, au compilateur Pawn de ton navigateur, prêts à être inclus dans un script.

Dépend de 1 paquet

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

Cette page est construite à partir de ce que GitHub publie sur le dépôt. samp.directory n’héberge pas le code. Signaler un problème avec cette fiche

bwhitmire55/samp-snapshots : Bibliothèque SA-MP | samp.directory