Fuel System - Help
#5

pawn Код:
public OnGameModeInit()
{
//things
SetTimer("FuelConsumption", 5000, true);
return 1;
}
new VehicleGas[MAX_VEHICLES];
forward FuelConsumption();
public FuelConsumption()
{
    for(new i=0;i<MAX_PLAYERS;i++)
    {
        GetVehicleParamsEx(vehgas,engine,lights,alarm,doors,bonnet,boot,objective);
        if(IsPlayerInAnyVehicle(i)) {} else return 1;
        new vehgas = GetPlayerVehicleID(i);
        VehicleGas[vehgas] -= 1;
        if(VehicleGas[vehgas] >= 0) SetVehicleParamsEx(vehgas, VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective);
    }
    return 1;
}
Reply


Messages In This Thread
Fuel System - Help - by luis_lpv_22 - 28.11.2011, 10:30
Re: Fuel System - Help - by Jake__ - 28.11.2011, 12:42
Respuesta: Fuel System - Help - by luis_lpv_22 - 28.11.2011, 13:20
Re: Fuel System - Help - by Unte99 - 28.11.2011, 13:32
Re: Fuel System - Help - by CONTROLA - 28.11.2011, 13:42
Re: Fuel System - Help - by Unte99 - 28.11.2011, 13:56

Forum Jump:


Users browsing this thread: 2 Guest(s)