Fuel System Help
#10

Quote:
Originally Posted by KiiD
Посмотреть сообщение
The bar above the health, the gas station text.
All I want really is the command /refill
(The Km/ph isnt part of it.)
Well, I am about to start with my own system as well and this is how I think I will do it:
I got a vehicleInfo Enum which saves all info of a vehicle (well,, a lot) and I will go and add another value to that enum called 'fuelamount' (which holds the amount of fuel that is still in the tank). When a player is driving, I calculate the amount he loses (which I am not sure how yet) and when he fills up the tank, I reset the value back to the numbers of liters in the tank (and take his money, muahaha *evil laugh*).
Reply


Messages In This Thread
Fuel System Help - by KiiD - 17.09.2012, 22:51
Re: Fuel System Help - by KiiD - 17.09.2012, 22:53
Re: Fuel System Help - by mamorunl - 17.09.2012, 22:54
Re: Fuel System Help - by KiiD - 17.09.2012, 22:55
Re: Fuel System Help - by ThomasCarter - 18.09.2012, 01:19
Re: Fuel System Help - by Dubya - 18.09.2012, 01:26
Re: Fuel System Help - by mamorunl - 18.09.2012, 09:28
Re: Fuel System Help - by doreto - 18.09.2012, 09:42
Re: Fuel System Help - by KiiD - 20.09.2012, 13:55
Re: Fuel System Help - by mamorunl - 20.09.2012, 13:59

Forum Jump:


Users browsing this thread: 3 Guest(s)