Help with gas vehicle
#2

Hello.

This
pawn Код:
Gas[vehicle]--;
Reduces the amount of gas in the vehicle by one.

If you want it to lower gas at a slower rate, you need to slow down the rate at which the function "CheckGas" is called.

I believe it is a timer, so search your script for
pawn Код:
SetTimer("CheckGas"
Once you have found that, you need to change the time until the timer runs out. This should be the first number in the function "SetTimer"
pawn Код:
SetTimer(Name, time(milliseconds), repeat);
Increase the "time" to make the timer end less frequently, and your fuel last longer.
Reply


Messages In This Thread
Help with gas vehicle - by PaulDinam - 24.06.2012, 18:58
Re: Help with gas vehicle - by Badger(new) - 24.06.2012, 23:29

Forum Jump:


Users browsing this thread: 1 Guest(s)