[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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)