[FilterScript] [ADVANCED]Gear System (2 VERSIONS !)
#1

Introduction :
Hello guys, I've seen some gears systems before but without a textdraw! So I thought I could make one for you ! This will include 2 versions of different scripts. You can guys use it in your server, edit the script, but just keep my name on it ! This took me quite a while to make, I have put so many efforts to fix bugs cuz I'm a beginner, please, if PM me things I might wanna add in this to improve it so people can enjoy.

How to add in my server ?
It's a filterscript, you add it, change its name, and put that name in : Server.cfg
pawn Код:
filterscripts GearSystem(Or name if changed. )
you guys know all these stuffs, so, let's move on..

It's basically a gear system, it makes limits of vehicles speeds and more you get up your gear, more your speed can be increased.
Can I change some variables ?
Yes, you can edit things the way you prefer, check the .pwn and change :
You can only gear up every 5 seconds ( can be edited in the script )
pawn Код:
#define TCangear 5000 // 5000 ms ( 5 s ) that you need to wait before  gearing up.
You can only gear down every 2 seconds ( can be edited in the script )
pawn Код:
#define TDCangear 2000 // 2000 ms ( 2 s ) that you need to wait before  gearing down.
pawn Код:
#define GearOnBoats 1// 0 : enable gear on boats , 1 : disable it.
#define GearOnPlanes 1// 0 : enable gear on planes , 1 : disable it.
#define GearOnMotorbikes 1// 0 : enable gear on motorbikes , 1 : disable it.
Features :
- Awesome textdraws.
- Each gear has its specific maximum speed (depends on vehicle speed)
- Using timers for ability to gear up and down.
- No gear for planes/helicopters/boats/bikes.
NEW :
- Debug mode for ( Rcon players ), keep track of angles, velocity, and such..
- Fixed tons of bugs ( No more gearing during stunts, while vehicle is falling down a mountain ... )
- No gearing while driving backwards.
- And more to discover ..

Screenshots :
I apologize I couldn't upload the video because of the size and my internet.
Here is some screenshots by the way :
FIRST VERSION :


SECOND VERSION :



Two versions :
FIRST :
- Only 5 gears : 1,2,3,4,5.
- Suitable with Racing, Stunting, Survival, Trucking, and all gamemodes.
SECOND:
- Additional R gear to be able to go backwards.
- Can't go backward unless you are in R gear.
- Can't go forward if you are in R gear.
- Best for Role playing servers!
- Slightly bugged ( because of DrivingBackwards function and the angles that I can't fix. Prolly SAMP floats bug or my lack of knowledge in this domain. )

Tutorial and help :
FIRST VERSION :
- Press Y to gear up, Press N to gear down.
SECOND VERSION :
- Press Y to gear up, Press N to gear down.
- Hold N ( for +1sec ) to gear straight down to R ( while vehicle isn't moving. )

Download
FIRST VERSION : http://pastebin.com/385hngCG
SECOND VERSION : http://pastebin.com/pnqcywBf
I hope you guys use this in your server, and enjoy it, Found a bug ? Report please so I can fix.
Reply
#2

Goood one I am trying to script the same FS


Reped ! nice work
Reply
#3

awesome work i made a video for your first version
Reply
#4

https://www.youtube.com/watch?v=VuGh0KA4Rzo
Reply
#5

I appreciate the support.
I have no idea why it kept sending you "You can't gear down" even tho your debug mode was OFF, will try to look into that.
EDIT : The version you had is the old script, please download the new update.
Reply
#6

Ok no problem!!
Reply
#7

Nice one! I'll use it for my server!
Reply
#8

Quote:
Originally Posted by R3N3X
Посмотреть сообщение
Nice one! I'll use it for my server!
I appreciate that! I hope you Enjoy it!
Reply
#9

again when you're falling , you fall slow slow and slowly
like first version
Reply
#10

Quote:
Originally Posted by amirab
Посмотреть сообщение
again when you're falling , you fall slow slow and slowly
like first version
Fixed.
Thanks for reporting it, I just forgot a little line in the script. ( Updated the pastbin aswell )
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)