[FilterScript] **[FS]Speeding control **by Antironix
#1

[color=red][center][FS]Speeding control


I always wanted to make something unique. And here is it. If you go to fast than next to a object(flitspaal=dutch, how to say it in english?? ) the max speed then you will get fined depented on your speed.

Credits:

Speedometer creater: Peter
Speeding limit: Antironix


Screenshots:

/imageshack/my.php?i...edlimitwl3.jpg


How to add a new "flitspaal :"

At line 68 you see:
pawn Код:
AddFlitsPaal(i, 1278, 2077.5579,1013.2529,10.8203, 20, 50);
    AddFlitsPaal(i, 1278, 2078.9189,1235.0403,10.3865, 20, 40);
Delete those other AddFlitsPaal things and add your new one. If you want to have more then 2 "Flitspalen " then set maxobject to another number(can be found at the top of the script.

this is how you must add a new "flitspaal".
pawn Код:
AddFlitsPaal(playerid, modelid, Float:xx, Float:yy, Float:zz, radius, speed)
modelid=object id. Look on wiki.
Floatx/yy/zz= coordinates.
radius= How far you can be caught of the "flitspaal".
Speed= The max speed you may drive.

Update:
Quote:

Updated.

I deleted the speedo meter, it gave me some bugs and i didn't want to fix the speedo meter but only the flitspaal thing.

Changes:

- Deleted speedometer
- playerid has become i(all players)
example:

PAWN Code:
AddFlitsPaal(i, 1278, 2077.5579,1013.2529,10.8203, 20, 100);
AddFlitsPaal(i, 1278, 2078.9189,1235.0403,10.3865, 20, 40);


Fixed:

- Working now for all players
- If it is good, the object are working too!

New things:

- Added a delay that ALL players can be shotted again. I set it to 1 second to make it save that you won't be shot twice.


If you want to get the fee less change the number 17 on line 112 or change the 1:10(broke?lol)
.

Example:

PAWN Code:
20 * 17/10 =34 $ to pay
20 * 5/10 = 10 $ to pay
20 * 3/10 = 6 $ to pay
Download:

http://www.pastebin.ca/750380
http://rapidshare.com/files/65320633/speedo.rar.html

Questions:
Код:
Question 1: I get fined twice, how to avoid it?
Answer: Well there isn't really a way to avoid it how you want it,but there are 3 ways;
	   1. Just change the updateseconds, so you all players can get 1 second
	     after someone get fined not get fined.
	   2. Change the speed to a very high value, so you will pass the flitspaal
		 faster than your updateseconds.
	   3. Change your radius. If you have a small radius you drive faster through it.
		 If you have a large radius, you get fined lots of time.

Question 2: How to change the fee?
Answer: Just play with the numbers under new fee = 17/10;. The fee is calculated like this:
	 (YOURSPEED - MAXSPEED)*(17/10). So if you driving 20 mph and the maxspeed is 10,
	 your fee is (20-10)*(17/10)=17. If you lower the 17 of 17/10 then your fee will
	 be lower, if you make it higher then the fee will be higher.
grtz Anti

ps. I didn't found any translations of the word "flitspaal". So somebody let me know how you call it.
Reply


Messages In This Thread
**[FS]Speeding control **by Antironix - by Antironix - 24.10.2007, 14:01
Re: **[FS]Speedometer + Speeding limit **by Antironix - by [FTG]Little_G - 24.10.2007, 14:20
Re: **[FS]Speedometer + Speeding limit **by Antironix - by Djrasim - 24.10.2007, 14:21
Re: **[FS]Speedometer + Speeding limit **by Antironix - by Gehaktbal - 24.10.2007, 14:29
Re: **[FS]Speedometer + Speeding limit **by Antironix - by Antironix - 24.10.2007, 15:35
Re: **[FS]Speedometer + Speeding limit **by Antironix - by yom - 24.10.2007, 16:22
Re: **[FS]Speedometer + Speeding limit **by Antironix - by BeckzyBoi - 24.10.2007, 16:29
**[FS]Speedometer + Speeding limit **by Antironix - by Maikel - 24.10.2007, 16:31
Re: **[FS]Speedometer + Speeding limit **by Antironix - by Alejandro - 24.10.2007, 16:48
Re: **[FS]Speedometer + Speeding limit **by Antironix - by Djrasim - 24.10.2007, 18:14
Re: **[FS]Speedometer + Speeding limit **by Antironix - by nate660 - 25.10.2007, 12:57
Re: **[FS]Speedometer + Speeding limit **by Antironix - by Richi_Makaveli - 25.10.2007, 15:17
Re: **[FS]Speedometer + Speeding limit **by Antironix - by Antironix - 25.10.2007, 15:56
Re: **[FS]Speedometer + Speeding limit **by Antironix - by [PHX]Randy - 25.10.2007, 16:04
Re: **[FS]Speedometer + Speeding limit **by Antironix - by Antironix - 26.10.2007, 13:37
Re: **[FS]Speeding control **by Antironix - by mikster1 - 26.10.2007, 17:32
Re: **[FS]Speeding control **by Antironix - by Beaver07 - 01.11.2007, 15:45
Re: **[FS]Speeding control **by Antironix - by Antironix - 01.11.2007, 17:40
Re: **[FS]Speeding control **by Antironix - by Antironix - 02.11.2007, 21:06
Re: **[FS]Speeding control **by Antironix - by polgast - 15.11.2007, 16:57
Re: **[FS]Speeding control **by Antironix - by Francis[French] - 16.11.2007, 13:23
Re: **[FS]Speeding control **by Antironix - by diamondo25 - 02.02.2008, 19:18
Re: **[FS]Speeding control **by Antironix - by Francis[French] - 02.02.2008, 21:47
Re: **[FS]Speeding control **by Antironix - by Spyro55 - 03.02.2008, 01:15
Re: **[FS]Speeding control **by Antironix - by cmg4life - 03.02.2008, 04:15
Re: **[FS]Speeding control **by Antironix - by [nl]daplayer - 03.02.2008, 07:27
Re: **[FS]Speeding control **by Antironix - by LethaL - 03.02.2008, 09:10
Re: **[FS]Speeding control **by Antironix - by kevin433 - 21.02.2008, 20:52
Re: **[FS]Speeding control **by Antironix - by Numhaken - 21.02.2008, 22:52
Re: **[FS]Speeding control **by Antironix - by Antironix - 22.02.2008, 11:41
Re: **[FS]Speeding control **by Antironix - by Antironix - 24.11.2008, 14:15
Re: **[FS]Speeding control **by Antironix - by BioFreeze - 24.11.2008, 14:26
Re: **[FS]Speeding control **by Antironix - by Dmac_91 - 24.11.2008, 15:53
Re: **[FS]Speeding control **by Antironix - by Antironix - 24.11.2008, 17:37
Re: **[FS]Speeding control **by Antironix - by moggeh - 02.12.2008, 20:52
Re: **[FS]Speeding control **by Antironix - by MueldersX - 06.12.2008, 20:16
Re: **[FS]Speeding control **by Antironix - by gernes - 06.12.2008, 20:26
Re: **[FS]Speeding control **by Antironix - by Hip-hop - 10.03.2010, 17:33
Re: **[FS]Speeding control **by Antironix - by Brian_Furious - 10.07.2010, 23:14

Forum Jump:


Users browsing this thread: 1 Guest(s)