13.10.2014, 05:44
Hello everyone today i am confused with a task i have fuel system in my server the max fuel is 100 and its working perfect but i want to make random fuel for vehicles like 15-80% fuel example if you sit in a car the car have 36 fuel and if you sit in another car the car must have different amount of fuel like 40% so i am confused with make that system here is my code if you can help me to make it.
Thanks for help in advance.
pawn Code:
// MAX-Fuel
#define FuelMax 100.0
pawn Code:
new Float:Gas[MAX_VEHICLES] = {FuelMax, ...}; // This is for give fuel to vehicles