09.12.2012, 08:43
What you've shown is the script checking if the vehicle engine is on.
if(engine == VEHICLE_PARAMS_OFF)
Your vehicle fuel is this integer at the current time: Vehicles[PCar][Fuel].
I'm sorry but I can't really understand what you're trying to say.
My only suggestion is to set the fuel to 0 at this time:
So that once the ten seconds has passed. You will have fuel again.
if(engine == VEHICLE_PARAMS_OFF)
Your vehicle fuel is this integer at the current time: Vehicles[PCar][Fuel].
I'm sorry but I can't really understand what you're trying to say.
My only suggestion is to set the fuel to 0 at this time:
PHP код:
case 0: // In here.
{
TogglePlayerControllable(playerid,0);
GameTextForPlayer(playerid,"~b~Petrol ~n~ ~w~Refueling vehicle ~n~~g~Please wait..",10000,3);
RefillTimer = SetTimerEx("ReFill", 10000, false, "i", playerid);
Tankuje[playerid] = 1;
}