[FilterScript] Gamer's speedometer & fuel system
#21

Quote:
Originally Posted by gamer931215
Посмотреть сообщение
Later spawned vehicles will be detected and also will be given fuel and the health will be re-calculated
Wrong, when you use a for loop with max_vehicles to set fuel, will also set fuel for all vehicles that are made also.

Anyway i have a suggestion to this, instead of paying $80 make an for loop like this:
pawn Код:
new FuelTick;
for(new j; j < MAX_FUEL; j++)
{
     FuelTick+++;
     // may want to set the textdraw here so it looks like you are refuelling.
}
GivePlayerMoney(playerid, -FuelTick*FUEL_PRICE);
format(string, sizeof(string), "The refueling costed you $ %d! ", FuelTick*FUEL_PRICE);
You can also save a lot of lines by putting Health Speed And Fuel in the same Td.
Reply


Messages In This Thread
Gamer's speedometer & fuel system - by gamer931215 - 19.08.2010, 18:51
Re: Gamer's speedometer & fuel system - by RemizeX - 19.08.2010, 18:54
Respuesta: Gamer's speedometer & fuel system - by Cacoby - 19.08.2010, 19:48
Re: Gamer's speedometer & fuel system - by DaneAMattie - 19.08.2010, 20:20
Re: Gamer's speedometer & fuel system - by Brian_Furious - 19.08.2010, 21:21
Re: Gamer's speedometer & fuel system - by Hero_Of_War - 19.08.2010, 21:50
Re: Gamer's speedometer & fuel system - by gamer931215 - 19.08.2010, 21:54
Re: Gamer's speedometer & fuel system - by Hero_Of_War - 19.08.2010, 21:56
Re: Gamer's speedometer & fuel system - by [XST]O_x - 19.08.2010, 22:06
Re: Gamer's speedometer & fuel system - by fen1x-nk - 20.08.2010, 01:08
Re: Gamer's speedometer & fuel system - by Deadwalker - 20.08.2010, 02:58
Re: Gamer's speedometer & fuel system - by gamer931215 - 20.08.2010, 09:06
Re: Gamer's speedometer & fuel system - by Lookin - 22.08.2010, 09:38
Re: Gamer's speedometer & fuel system - by gondes - 16.09.2010, 17:01
Re: Gamer's speedometer & fuel system - by gamer931215 - 16.09.2010, 17:39
Re: Gamer's speedometer & fuel system - by gondes - 16.09.2010, 17:56
Re: Gamer's speedometer & fuel system - by gamer931215 - 16.09.2010, 19:03
Re: Gamer's speedometer & fuel system - by gondes - 17.09.2010, 03:22
Re: Gamer's speedometer & fuel system - by gamer931215 - 17.09.2010, 05:19
Re: Gamer's speedometer & fuel system - by Hawkz_Ryder - 17.09.2010, 12:41
Re: Gamer's speedometer & fuel system - by Cameltoe - 17.09.2010, 12:54
Re: Gamer's speedometer & fuel system - by gamer931215 - 17.09.2010, 13:47
Re: Gamer's speedometer & fuel system - by Cameltoe - 17.09.2010, 13:58
Re: Gamer's speedometer & fuel system - by gamer931215 - 17.09.2010, 14:31
Re: Gamer's speedometer & fuel system - by Cameltoe - 17.09.2010, 14:38
Re: Gamer's speedometer & fuel system - by royal_king - 17.09.2010, 14:59
Re: Gamer's speedometer & fuel system - by Lookin - 18.09.2010, 12:29
Re: Gamer's speedometer & fuel system - by Basicz - 18.09.2010, 13:14
Re: Gamer's speedometer & fuel system - by Tanush123 - 15.01.2012, 21:22
Re: Gamer's speedometer & fuel system - by Stm - 28.05.2012, 16:11
Respuesta: Gamer's speedometer & fuel system - by u3games - 02.07.2012, 17:57
Re: Gamer's speedometer & fuel system - by $$inSane - 03.07.2012, 05:15
Re: Gamer's speedometer & fuel system - by T4Ka_ - 28.08.2012, 10:57
Re: Gamer's speedometer & fuel system - by N0FeaR - 09.09.2012, 01:32
Re: Gamer's speedometer & fuel system - by phil_lendon - 09.09.2012, 15:01
Re: Gamer's speedometer & fuel system - by dino_d_carter - 15.10.2012, 16:11
Re: Gamer's speedometer & fuel system - by Lordzy - 15.10.2012, 16:26
Re: Gamer's speedometer & fuel system - by AnonScripter - 04.02.2014, 20:06
Re: Gamer's speedometer & fuel system - by Teemo - 13.02.2014, 14:11
Re: Gamer's speedometer & fuel system - by fahmi - 13.02.2014, 15:21
Respuesta: Gamer's speedometer & fuel system - by ADOK1NG - 14.02.2014, 15:59
Re: Gamer's speedometer & fuel system - by Milokavis - 27.07.2014, 21:21

Forum Jump:


Users browsing this thread: 4 Guest(s)