Mergevos/open-cctv
Library allowing you to create CCTV (closed-circuit television) cameras and watch them.
Dieses Repository hat keine Lizenzdatei. Es ist öffentlich lesbar, aber das allein gibt noch keine Erlaubnis, es weiterzuverwenden.
Mit sampctl installieren
sampctl package install Mergevos/open-cctv
Führe das in deinem Projektordner aus. sampctl lädt das Paket und alles herunter, wovon es abhängt.
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 5 Paketen ab
README.md
open-cctv
This library allows you to create a CCTV cameras and watch them.
Installation
Simply install to your project:
sampctl package install Mergevos/open-cctv
Include in your code and begin using the library:
#include <cctv>
Usage
There are not too many functions. They are listed below.
This function creates a camera.
bool: CCTV_Create(Float: x, Float: y, Float: z, Float: rotX, Float: rotY, Float: rotZ, Float: lookX, Float: lookY, Float: lookZ, virtualworld, interiorid)
Where arguments above are:
x - The X coordinate of the camera
y - The Y coordinate of the camera
z - The Z coordinate of the camera
rotX - The X rotation of the camera
rotY - The Y rotation of the camera
rotZ - The Z rotation of the camera
lookX - The X coordinate of the camera looking
lookY - The Y coordinate of the camera looking
lookX - The Z coordinate of the camera looking
virtualworld - The virtualworld of the camera
interiorid - The interior of the camera
This function destroys a camera.
CCTV_Destroy(cctvid)
cctvid - ID of the camera
Makes a player watch the camera
CCTV_Watch(playerid, cctvid)
playerid - Playerid we are making to watch the camera
cctvid - Camera ID
CCTV_Unwatch(playerid, cctvid)
Makes a player stop watching the camera
playerid"> Playerid we are making to unwatch the camera
cctvid - Camera ID
Testing
To test, configure pawn.json and test.pwn then 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