open.mp forum
[Library] samp-cctv | Create CCTV with one line! Monitor everything. - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Releases (https://forum.open.mp/forumdisplay.php?fid=13)
---- Forum: Libraries (https://forum.open.mp/forumdisplay.php?fid=31)
---- Thread: [Library] samp-cctv | Create CCTV with one line! Monitor everything. (/showthread.php?tid=1317)



samp-cctv | Create CCTV with one line! Monitor everything. - Mergevos - 2020-11-05

samp-cctv



This library allows you to create CCTV. CCTV stands for closed-circuit television.?



Usage



Code:
CCTV_Create(Float: x, Float: y,? Float: z, Float: rotX, Float: rotY, Float: rotZ, Float: lookX, Float: lookY, Float: lookZ, virtualworld, interiorid)[/align]

[align=center]CCTV_Destroy(cctvid)[/align]

[align=center]CCTV_Watch(playerid, cctvid)[/align]

[align=center]CCTV_Unwatch(playerid, cctvid)

I think the names of these functions are self-explanatory. You either create, watch, destroy or unwatch a specific CCTV.?

For more info, check github.

Installation

Of course, use the modern standards

Code:
sampctl p install Mergevos/samp-cctv[/align]

[align=center]

Then include it
Code:
cctv.inc
and start using library.

Images

[Image: 5RcrewK.jpg]



RE: samp-cctv | Create CCTV with one line! Monitor everything. - vicecity - 2020-11-06

good! where github link?


RE: samp-cctv | Create CCTV with one line! Monitor everything. - BigETI - 2020-11-06

> sampctl p install Mergevos/samp-cctv



therefore

https://github.com/Mergevos/samp-cctv


RE: samp-cctv | Create CCTV with one line! Monitor everything. - Mergevos - 2020-11-06

(2020-11-06, 03:11 AM)vicecity Wrote: good! where? github link?

Thanks.

(2020-11-06, 03:58 AM)BigETI Wrote: https://github.com/Mergevos/samp-cctv

Here.


RE: samp-cctv | Create CCTV with one line! Monitor everything. - Pinch - 2020-11-06

Code:
stock CCTV_Destroy(cctvid)

{

    if(!Iter_Contains(cctv_Iter, cctvid) || !IsValidDynamicObject(cctv_Handle[cctvid])) {

        return 0;

    }

    Iter_Remove(cctv_Iter, cctvid);

    DestroyDynamicObject(cctv_Handle[cctvid]);

    return 1;

}

You need to fix this, I'll DM you the problem