(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
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?