17.02.2014, 19:19
Try this:
Quote:
public Bena() { new autosidkokku = vehicles_created + fvehicles_created + tvehicles_created; for(new v = 0; v < autosidkokku; v++) { if(Engine[v] == 1) { if(vInfo[v][vBensiin] > 0) { vInfo[v][vBensiin] -= 1; } else if(vInfo[v][vBensiin] <= 0) { Engine[v] = 0; new engine,lights,alarm,doors,bonnet,boot,objective; GetVehicleParamsEx(v, engine, lights, alarm, doors, bonnet, boot, objective);//This bit is checking the current status of the vehicles. SetVehicleParamsEx(v,VEHICLE_PARAMS_OFF,lights,ala rm,doors,bonnet,boot,objective); } } } return 1; } |