Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Releases Libraries [Library] samp-cctv | Create CCTV with one line! Monitor everything.

 
  • 0 Vote(s) - 0 Average
Library samp-cctv | Create CCTV with one line! Monitor everything.
Mergevos
Offline

Burgershot Member
Posts: 12
Threads: 8
Joined: Jul 2020
Reputation: 0
#1
2020-11-05, 11:05 PM
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]
vicecity
Offline

Burgershot Member
Posts: 3
Threads: 1
Joined: Oct 2020
Reputation: 0
Location: korea
#2
2020-11-06, 03:11 AM
good! where github link?
BigETI
Offline

open.mp Developer

Posts: 107
Threads: 5
Joined: Feb 2019
Reputation: 12
Location: Germany
#3
2020-11-06, 03:58 AM
> sampctl p install Mergevos/samp-cctv

therefore
https://github.com/Mergevos/samp-cctv
[Image: github-samp-icon.png]
Mergevos
Offline

Burgershot Member
Posts: 12
Threads: 8
Joined: Jul 2020
Reputation: 0
#4
2020-11-06, 12:07 PM
(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.
Pinch
Offline

Burgershot Member
Posts: 391
Threads: 19
Joined: Apr 2019
Reputation: 22
Location: Belgrade, Serbia
#5
2020-11-06, 12:26 PM
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.
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode