Fuel drops instantly.
#7

Quote:
Originally Posted by Voldemort
Посмотреть сообщение
pawn Код:
public timer_fuel_lower(playerid)
{
    new vid = GetPlayerVehicleID(playerid);
    if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        if(fuel[vid] > 0)
        {
            fuel[vid]--;
        }
        else
        {
            GetVehicleParamsEx(playerid,engine,lights,alarm,doors,bonnet,boot,objective);
            SetVehicleParamsEx(vid,0,lights,alarm,doors,bonnet,boot,objective);
            VehEngine[vid] = 0;
            SCM(playerid, red,"[System] You are out of fuel");
        }
    }
    SetProgressBarValue(bar_fuel[playerid], fuel[vid]);
    UpdateProgressBar(bar_fuel[playerid], playerid);
}
should work
Thanks but where exactly does it drop the fuel ?
Reply


Messages In This Thread
Fuel drops instantly. - by demonarn - 11.02.2012, 10:38
Re: Fuel drops instantly. - by milanosie - 11.02.2012, 10:40
Re: Fuel drops instantly. - by demonarn - 11.02.2012, 10:44
Re: Fuel drops instantly. - by Voldemort - 11.02.2012, 10:55
Re: Fuel drops instantly. - by milanosie - 11.02.2012, 10:56
Re: Fuel drops instantly. - by Babul - 11.02.2012, 10:58
Re: Fuel drops instantly. - by demonarn - 11.02.2012, 11:01
Re: Fuel drops instantly. - by demonarn - 11.02.2012, 11:03
Re: Fuel drops instantly. - by milanosie - 11.02.2012, 11:04
Re: Fuel drops instantly. - by demonarn - 11.02.2012, 11:10

Forum Jump:


Users browsing this thread: 1 Guest(s)