• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Library] samp-cctv | Create CCTV with one line! Monitor everything.
#1
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]
  Reply
#2
good! where github link?
  Reply
#3
> sampctl p install Mergevos/samp-cctv



therefore

https://github.com/Mergevos/samp-cctv
[Image: github-samp-icon.png]
  Reply
#4
(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.
  Reply
#5
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
Using Pawn.CMD?

If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
  Reply


Forum Jump: