Fuel drops instantly.
#3

pawn Код:
CMD:engine(playerid, params[]){
    new vehID = GetPlayerVehicleID(playerid);
    if(fuel[vehID]<=1)return SCM(playerid, red, "[System] You are out of fuel");
    if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER){
        if(VehEngine[vehID]<=0){
            SetTimerEx("startengine", 3000, 0, "i", playerid);
                timerfuel[playerid] = SetTimerEx("timer_fuel_lower",8500,true,"i",playerid); //sets the timer to drop the fuel
        }else if(VehEngine[vehID]==1) {
            ToggleVehEngine(vehID);
            KillTimer((timerfuel)[playerid]);
            SendClientMessage(playerid,0xFFFFFFFF,"engine off.");
        }
    }
    return 1;
}
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)