Librería★ 3actualizado mar 2021Sin licenciaPawnsampctl
Abrir en GitHubEste repositorio no tiene archivo de licencia. Se puede leer, pero eso por sí solo no da permiso para reutilizarlo.
Instalar con sampctl
sampctl package install bwhitmire55/samp-snapshots
Ejecútalo en la carpeta de tu proyecto. sampctl descarga el paquete y sus dependencias.
Depende de 1 paquete
- sampctl/samp-stdlibno está en este directorio
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 se genera con lo que GitHub publica sobre el repositorio. samp.directory no aloja el código. Informar de un problema con esta ficha