20.09.2012, 13:59
Quote:
The bar above the health, the gas station text.
All I want really is the command /refill (The Km/ph isnt part of 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*).