[Include] gCamera - Speedcamera system (supporting MPH & KMH) *with FLASH effect!!!*
#1

gCamera 1.0
What is it
gCamera is an include which allows you to add VERY EASILY speed cameras near highways, it will detect when a player passes it at high speed.

You can set the speed limit in kmh AND mph, and also the limit & fine PER CAMERA!.
It also includes an pretty awesome flash effect made with textdraws!

Video
[ame]http://www.youtube.com/watch?v=bkS7FXnGv5U[/ame]

Functions
pawn Код:
CreateSpeedCam(Float:x,Float:y,Float:z,Float:rot,range,limit,fine,use_mph = 0)
/*
***will create a new speedcamera
x,y,z,rot = position of the camera object
range = the range of the camera when a player passes it
limit = speedlimit
fine = fine that the player will need to pay if he passes the speedlimit
use_mph (0 on default using kmh, setting it on 1 will use mph)

returns: cameraid
*/


SetSpeedCamRange(cameraid,limit)
/*
***change the range for a specefic camera
cameraid = the cameraid returned by CreateSpeedCam()
limit = the new limit of the specefic camera
*/


SetSpeedCamFine(cameraid,fine)
/*
***set another fine for a specefic camera
cameraid = the cameraid returned by CreateSpeedCam()
fine = the new fine of the specefic camera
*/


DestroySpeedCam(cameraid)
/*
***Disables the camera and removes the camera object
cameraid = the cameraid returned by CreateSpeedCam()
*/
Defines
*You will need to define these BEFORE including gCamera

Код:
FILTERSCRIPT //should ALWAYS be defined if you use the include in an filterscript
CAMERA_LIMIT //limit of max cameras (should be set as low as possible)
CAMERA_FLASH_TIME //flash time of the effect in miliseconds
CAMERA_UPDATE_INTERVAL //update rate of the cameras in miliseconds
Good Example:
pawn Код:
#define CAMERA_LIMIT 5
#define FILTERSCRIPT
#include <gCamera>
WRONG example:
pawn Код:
#include <gCamera>
#define CAMERA_FLASH_TIME 1000
#define FILTERSCRIPT
Download
Download

If you are more interested in a filterscript to make them ingame you might want to take a look at this !
Reply
#2

Wow Thanks. I will use this
Reply
#3

what range do u use?
Reply
#4

What does it do? I didn't understand, Is that a screenfade?
Reply
#5

Quote:
Originally Posted by Donya
Посмотреть сообщение
what range do u use?
An average range of 20-30 is good enough for a road shown on the video.

Quote:
Originally Posted by anonymousx
Посмотреть сообщение
What does it do? I didn't understand, Is that a screenfade?
It "flashes" a white transparant textdraw, so it looks like the camera took a picture,
the effect in the video isnt edited, its the same effect as you will get ingame.
Reply
#6

Well after download & testing. I recommend this for roleplay servers :P Its awesome xD
Reply
#7

you should post the command to create the camera to save people time from doing it
Reply
#8

Speed camera - if someone drives over your limited speed he will be screenfaded and he will have to pay for that.

Edit: quick post ...
Reply
#9

Quote:
Originally Posted by GaGlets®
Посмотреть сообщение
Speed camera - if someone drives over your limited speed he will be screenfaded and he will have to pay for that.

Edit: quick post ...


Quote:
Originally Posted by Donya
Посмотреть сообщение
you should post the command to create the camera to save people time from doing it
Good idea, il might make an filterscript for this, adding them to the server via dialogs, and saving them for next restarts.
Reply
#10

that'll be cool, but also add it to the script, or put it external in the post
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)