Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(FrenodeMano[coche] == 0)
- {
- GetVehicleParamsEx(coche, partes[0], partes[1], partes[2], partes[3], partes[4], partes[5], partes[6]);
- if(partes[0] == 0)
- {
- //Silnik wyłączony, nie możesz go uruchomić.
- return 1;
- }
- FrenodeMano[coche] = 1;
- GetVehiclePos(coche, VehFrenoPOS[coche][0], VehFrenoPOS[coche][1], VehFrenoPOS[coche][2]);
- GetVehicleZAngle(coche, VehFrenoPOS[coche][3]);
- SetVehicleVelocity(coche, 0, 0, 0);
- ProxDetector(30.0, pid, string_freno, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetVehicleParamsEx(coche,VEHICLE_PARAMS_OFF, partes[1], partes[2], partes[3], partes[4], partes[5], partes[6]);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment