20.08.2012, 18:34
Now it just say
You are refilling your vehicle's tank.
and its dont take money and dont refuel it
You are refilling your vehicle's tank.
and its dont take money and dont refuel it
Код HTML:
forward ReFill(playerid);
public ReFill(playerid)
{
if(VehicleFuel[GetPlayerVehicleID(playerid)] >= 100.0)
{
VehicleFuel[GetPlayerVehicleID(playerid)] = 100.0;
KillTimer(RefuelingVehicleTimer[playerid]);
}
if(!IsAtFuelStation(playerid) || !IsPlayerInAnyVehicle(playerid) || VehicleFuel[GetPlayerVehicleID(playerid)] >= 100.0 || GetPlayerCash(playerid) < 1)
{
StopRefueling(playerid);
}
else
{
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective);
if(engine == VEHICLE_PARAMS_ON) {
StopRefueling(playerid);
}
else {
VehicleFuel[GetPlayerVehicleID(playerid)] += 1.0;
RefuelingVehiclePrice[playerid] += 30;
if(VehicleFuel[GetPlayerVehicleID(playerid)] >= 100.0) VehicleFuel[GetPlayerVehicleID(playerid)] = 100.0;
}
}
return true;
}