24.06.2012, 23:29
Hello.
This
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
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"
Increase the "time" to make the timer end less frequently, and your fuel last longer.
This
pawn Код:
Gas[vehicle]--;
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"
pawn Код:
SetTimer(Name, time(milliseconds), repeat);