gCamera - Speedcamera system (supporting MPH & KMH) *with FLASH effect!!!* -
gamer931215 - 08.04.2011
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 !
Re: gCamera - Speedcamera system (supporting MPH & KMH) *with FLASH effect!!!* -
BizzyD - 08.04.2011
Wow

Thanks. I will use this
Re: gCamera - Speedcamera system (supporting MPH & KMH) *with FLASH effect!!!* -
Donya - 09.04.2011
what range do u use?
Re: gCamera - Speedcamera system (supporting MPH & KMH) *with FLASH effect!!!* -
anonymousx - 09.04.2011
What does it do? I didn't understand, Is that a screenfade?
Re: gCamera - Speedcamera system (supporting MPH & KMH) *with FLASH effect!!!* -
gamer931215 - 09.04.2011
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.
Re: gCamera - Speedcamera system (supporting MPH & KMH) *with FLASH effect!!!* -
BizzyD - 09.04.2011
Well after download & testing. I recommend this for roleplay servers :P Its awesome xD
Re: gCamera - Speedcamera system (supporting MPH & KMH) *with FLASH effect!!!* -
Donya - 09.04.2011
you should post the command to create the camera to save people time from doing it
Re: gCamera - Speedcamera system (supporting MPH & KMH) *with FLASH effect!!!* -
GaGlets(R) - 09.04.2011
Speed camera - if someone drives over your limited speed he will be screenfaded and he will have to pay for that.
Edit: quick post ...
Re: gCamera - Speedcamera system (supporting MPH & KMH) *with FLASH effect!!!* -
gamer931215 - 09.04.2011
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.
Re: gCamera - Speedcamera system (supporting MPH & KMH) *with FLASH effect!!!* -
Donya - 09.04.2011
that'll be cool, but also add it to the script, or put it external in the post