SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 14/02/2015, 08:00 PM   #1
Baltimore
Huge Clucker
 
Join Date: Jun 2014
Posts: 344
Reputation: 20
Default SAMP consumption fuel.

Hello !

I watched a video but I do not know how to do to make something similar (or almost).

https://www.youtube.com/watch?v=hWHM90RYqjg < Link.

For now I have nothing , no mileage system, no fuel consumption system , nothing.

I want to arrive at the same result as the video, but being lost I do not know how.

Where do I start?

One kilometer system?

How do I do ?

...

Thanks !
Baltimore is offline   Reply With Quote
Old 14/02/2015, 08:22 PM   #2
Kaperstone
Banned
 
Join Date: May 2011
Location: Russia
Posts: 3,004
Reputation: 824
Default Re: SAMP consumption fuel.

Start with a distance traveled.
Then find out how much fuel the specific vehicle burns in real life (search for the model) per 100m, divide it by 60 to see how much fuel it consumes per second.
Then take take a test drive with the vehicle in-game and listen to the engine sound, by the sound try to find how much fuel burn every second (apporoximately) and display it on the screen.


The distance traveled is seperated, it just displays how much you drove.
Kaperstone is offline   Reply With Quote
Old 14/02/2015, 08:28 PM   #3
Baltimore
Huge Clucker
 
Join Date: Jun 2014
Posts: 344
Reputation: 20
Default Re: SAMP consumption fuel.

I do not even system to determine the distance that a vehicle ...
Baltimore is offline   Reply With Quote
Old 14/02/2015, 10:05 PM   #4
Baltimore
Huge Clucker
 
Join Date: Jun 2014
Posts: 344
Reputation: 20
Default Re: SAMP consumption fuel.

I managed to obtain the consumption / 100 km.

How to be in reality when we are at constant speed, decrease consumption?

Sorry for my english ^^
Baltimore is offline   Reply With Quote
Old 15/02/2015, 11:48 AM   #5
Baltimore
Huge Clucker
 
Join Date: Jun 2014
Posts: 344
Reputation: 20
Default Re: SAMP consumption fuel.

UP, please
Baltimore is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fuel consumption system? Baltimore Scripting Help 11 14/02/2015 11:56 AM
Realistic Fuel Consumption Luis- Scripting Help 11 11/12/2014 05:02 PM
Fuel Consumption Luis- Scripting Help 8 27/05/2014 08:06 PM
Fuel Consumption (again) Luis- Scripting Help 1 08/05/2014 06:54 PM
Bigger array size - more RAM consumption? zgintasz Scripting Help 6 16/07/2012 03:02 PM


All times are GMT. The time now is 07:47 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.