help with gas.
#1

Hi all,I need some help.I want to do if player run with vehicle 1 km,he lost 1 gas,but in my script when player reach 1 km he lost 1 gas every second(this is because i set timer for 1 second).But i wanna to do 1 km 1 gas.More 1 km and again 1 gas less.Again 1 km more and 1 gas less here is my script:

if(vehicleDB[vehicleid][prav]/10000 >= 1)//here is when player run with vehicle 1 km
{
vehicleDB[vehicleid][gas] --;//he lost 1 gas

Thanks.
Reply


Messages In This Thread
help with gas. - by budelis - 04.07.2011, 10:33
Re: help with gas. - by budelis - 04.07.2011, 11:43
Re: help with gas. - by Mike Garber - 04.07.2011, 11:47
Re: help with gas. - by budelis - 04.07.2011, 12:31
Re: help with gas. - by budelis - 05.07.2011, 09:31

Forum Jump:


Users browsing this thread: 1 Guest(s)