Need help with my fuel system
#2

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:
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"10000false"i"playerid);
                
Tankuje[playerid] = 1;
            } 
So that once the ten seconds has passed. You will have fuel again.
Reply


Messages In This Thread
Need help with my fuel system - by Stefand - 09.12.2012, 07:06
Re: Need help with my fuel system - by Peach - 09.12.2012, 08:43
Re: Need help with my fuel system - by Stefand - 09.12.2012, 09:07
Re: Need help with my fuel system - by RenSoprano - 09.12.2012, 09:11
Re: Need help with my fuel system - by Stefand - 09.12.2012, 09:31
Re: Need help with my fuel system - by Peach - 09.12.2012, 09:32
Re: Need help with my fuel system - by Stefand - 10.12.2012, 13:01

Forum Jump:


Users browsing this thread: 1 Guest(s)