Bibliothek★ 3aktualisiert März 2021Keine LizenzPawnsampctl
Auf GitHub öffnenDieses Repository hat keine Lizenzdatei. Es ist öffentlich lesbar, aber das allein gibt noch keine Erlaubnis, es weiterzuverwenden.
Mit sampctl installieren
sampctl package install bwhitmire55/samp-snapshots
Führe das in deinem Projektordner aus. sampctl lädt das Paket und alles herunter, wovon es abhängt.
Im Pawn-Compiler ausprobieren →
Fügt seine Include-Dateien samt der Bibliotheken, von denen es abhängt, dem Pawn-Compiler in deinem Browser hinzu, bereit zum Einbinden in ein Skript.
Hängt von 1 Paket ab
- sampctl/samp-stdlibnicht in diesem Verzeichnis
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
Diese Seite wird aus dem erstellt, was GitHub über das Repository veröffentlicht. samp.directory hostet den Code nicht. Ein Problem mit diesem Eintrag melden