samp.directory
← Scripts e bibliotecas

bwhitmire55/samp-snapshots

Sem descrição no GitHub.

Biblioteca★ 3atualizado mar. de 2021Sem licençaPawnsampctl
Abrir no GitHub

Este 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 bwhitmire55/samp-snapshots

Execute na pasta do seu projeto. O sampctl baixa o pacote e as dependências dele.

Depende de 1 pacote

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

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