17.09.2010, 12:54
Quote:
Later spawned vehicles will be detected and also will be given fuel and the health will be re-calculated
|
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);