Hello There, Guest! Login or Register


Fuel system for vehicles
#23
(12-08-2006, 04:41 PM)Rippance link Wrote:Well that would be ideal to force some1 to refill.
Following situation:
1. Fuel empty
2. User get list of refuel stations , or nearest refuel stations
3. User gets carteleported
4a. User choses to refill. End.
4b. User does not refill.
5. Throw user out of vehicle every 10-20 seconds :D

I agree with you, this would be the best solution imho, if freezing a car is not possible, like theHolyCow mentioned earlier. It would be best to ask the player if he wants to teleport to the nearest fuelstation for a certain amount of money (depending on the distance to the closest fuelstation), where he will be put in the fuelmarker, where he can use /fuel to buy fuel.
If he doesn't want to get fuel, he should be thrown out of his car every 15 seconds for example. Also, if a player enters a car without fuel, he should also be thrown out of the car, or he has to teleport to a fuel station.
When a player is at a fuel-station (read: in the marker at a fuel station), he shouldn't be thrown out of his car, because that can be quite annoying when you have to withdraw money from a prorekening before buying fuel.

By the way, will it be possible to freeze cars properly in 0.2?

edit:
Isn't it possible to freeze a car with TogglePlayerControllable(playerid,moveable);? Just execute this command when a player enters a car, so he won't be able to move. He can, however execute commands. If he wants to leave the car: /leavecar; If he wants to teleport to a fuelstation: /fuelstation for example. If a player uses /leavecar, just throw him out of his car, and unfreeze him with said command.
When he teleports in his car-without-fuel to a fuelstation, and buys fuel so the amount of fuel is >0, he can also be unfrozen, but don't throw him out of his car :+

Is this possible?
Reply


Messages In This Thread
Fuel system for vehicles - by BakuraRyou - 11-19-2006, 07:59 PM
Re: Fuel system for vehicles - by theHolyCow - 11-20-2006, 03:43 PM
Re: Fuel system for vehicles - by Peter - 11-20-2006, 05:01 PM
Re: Fuel system for vehicles - by Nakebod - 11-20-2006, 07:03 PM
Re: Fuel system for vehicles - by theHolyCow - 11-20-2006, 10:15 PM
Re: Fuel system for vehicles - by BakuraRyou - 11-21-2006, 09:34 PM
Re: Fuel system for vehicles - by Rippance - 11-21-2006, 09:41 PM
Re: Fuel system for vehicles - by Nakebod - 11-21-2006, 09:45 PM
Re: Fuel system for vehicles - by Rippance - 12-03-2006, 07:12 PM
Re: Fuel system for vehicles - by theHolyCow - 12-03-2006, 10:40 PM
Re: Fuel system for vehicles - by Ahtykk - 12-04-2006, 10:59 AM
Re: Fuel system for vehicles - by theHolyCow - 12-04-2006, 04:36 PM
Re: Fuel system for vehicles - by Rippance - 12-04-2006, 09:31 PM
Re: Fuel system for vehicles - by Ahtykk - 12-05-2006, 02:48 PM
Re: Fuel system for vehicles - by theHolyCow - 12-05-2006, 11:43 PM
Re: Fuel system for vehicles - by Rippance - 12-06-2006, 09:23 PM
Re: Fuel system for vehicles - by theHolyCow - 12-06-2006, 11:55 PM
Re: Fuel system for vehicles - by Rippance - 12-08-2006, 04:41 PM
Re: Fuel system for vehicles - by __Katie__ - 01-15-2007, 03:52 AM
Re: Fuel system for vehicles - by Rippance - 01-15-2007, 10:59 AM
Re: Fuel system for vehicles - by Kecin - 01-15-2007, 10:15 PM
Re: Fuel system for vehicles - by BiG_T - 01-16-2007, 04:53 AM
Re: Fuel system for vehicles - by BakuraRyou - 01-17-2007, 05:35 PM
Re: Fuel system for vehicles - by theHolyCow - 01-21-2007, 10:08 PM
Re: Fuel system for vehicles - by TriggeR - 01-22-2007, 09:21 PM
Re: Fuel system for vehicles - by Ahtykk - 01-25-2007, 02:41 AM
Re: Fuel system for vehicles - by Peter - 01-25-2007, 07:19 AM
Re: Fuel system for vehicles - by JUTD - 01-25-2007, 08:38 AM
Re: Fuel system for vehicles - by theHolyCow - 01-26-2007, 02:27 PM