SA:MP Autodriver

LIPOSWAGER

Известный
Автор темы
5
0
Всем привет! Данное слео работает норм но есть нюанс когда с оружием в руке сидя в авто на водительском сидении нажимаю шифт происходит ФуллАиминг (пед вылазит с водительского окна машет оружием и собирается стрелять). Если есть умельцы отключить данную фичу ...Чтобы ВОДИЛА ПРОСТО РУЛИЛ КАК ПОЛОЖЕНО И НЕ ЛЕЗ В ОКНО ))

ЗАРАНЕЕ ОГРОМНОЕ СПАСИБО!!!
 

Вложения

  • autodriver.cs
    1.6 KB · Просмотры: 4

chromiusj

модерирую шмодерирую
Модератор
5,980
4,297
cs зашифрован ниче не сделать
попробуй открывать файл не открывашкой для тушенки а этим хотя бы https://sannybuilder.com/
исходный код
CLEO:
{$CLEO .cs}

30@ = 0
4@ = 25.0

:Noname_17
wait 0
if
  is_player_playing $player1
goto_if_false @Noname_732
if and
  is_char_in_any_car $scplayer
  not is_char_in_model $scplayer {modelId} 537
  not is_char_in_model $scplayer {modelId} 538
  not is_char_in_any_boat $scplayer
  not is_char_in_flying_vehicle $scplayer
goto_if_false @Noname_309
0@ = store_car_char_is_in_no_save $scplayer
if
  is_key_pressed KeyCode.Z
goto_if_false @Noname_200
if and
  does_vehicle_exist 0@
  1@, 2@, 3@ = get_target_blip_coords
goto_if_false @Noname_188
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
if
  30@ == 0
goto_if_false @Noname_181
gosub @Noname_844
goto @Noname_188

:Noname_181
gosub @Noname_739

:Noname_188
cleo_call @Noname_1337 {numArgs} 1 {args} 90

:Noname_200
if
  22@ == 0
  is_key_pressed KeyCode.Shift
goto_if_false @Noname_262
21@ = get_current_char_weapon $scplayer
if and
  21@ >= 22
  21@ <= 32
goto_if_false @Noname_262
gosub @Noname_1211

:Noname_262
if
  22@ <> 0
goto_if_false @Noname_309
if
  is_key_pressed KeyCode.Shift
goto_if_false @Noname_302
goto @Noname_309

:Noname_302
gosub @Noname_1262

:Noname_309
if
  30@ == 1
goto_if_false @Noname_695
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  is_car_in_water 0@
  is_car_dead 0@
goto_if_false @Noname_361
gosub @Noname_739

:Noname_361
if and
  does_vehicle_exist 0@
  is_car_upsidedown 0@
goto_if_false @Noname_389
gosub @Noname_798

:Noname_389
if
  not does_vehicle_exist 0@
goto_if_false @Noname_419
30@ = 0
goto @Noname_688

:Noname_419
if
  not is_char_in_car $scplayer {vehicle} 0@
goto_if_false @Noname_445
30@ = 0

:Noname_445
if and
  is_key_pressed KeyCode.A
  1@, 2@, 3@ = get_target_blip_coords
goto_if_false @Noname_490
gosub @Noname_927
cleo_call @Noname_1337 {numArgs} 1 {args} 65

:Noname_490
if
  is_key_pressed KeyCode.Space
goto_if_false @Noname_576
load_mission_text 'FTRAIN'
if
  29@ == 0
goto_if_false @Noname_562
cleo_call @Noname_1365 {numArgs} 4 {args} 10 1 -1647 3
29@ = 1

:Noname_562
gosub @Noname_977
goto @Noname_613

:Noname_576
if
  29@ == 1
goto_if_false @Noname_613
29@ = 0
cleo_call @Noname_1431 {numArgs} 1 {args} 10

:Noname_613
if
  locate_stopped_car_2d 0@ {x} 1@ {y} 2@ {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @Noname_654
gosub @Noname_739

:Noname_654
if
  is_key_pressed KeyCode.X
goto_if_false @Noname_688
gosub @Noname_1108
cleo_call @Noname_1337 {numArgs} 1 {args} 88

:Noname_688
goto @Noname_732

:Noname_695
if
  29@ == 1
goto_if_false @Noname_732
29@ = 0
cleo_call @Noname_1431 {numArgs} 1 {args} 10

:Noname_732
goto @Noname_17

:Noname_739
30@ = 0
task_warp_char_into_car_as_driver $scplayer {vehicle} 0@
set_car_traction 0@ {traction} 1.0
mark_car_as_no_longer_needed 0@
set_car_strong 0@ {state} False
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
return

:Noname_798
5@ = get_car_heading 0@
6@, 7@, 8@ = get_car_coordinates 0@
set_car_coordinates 0@ {x} 6@ {y} 7@ {z} 8@
set_car_heading 0@ {heading} 5@
return

:Noname_844
30@ = 1
3@ = get_ground_z_for_3d_coord 1@ {y} 2@ {z} 3@
set_car_mission 0@ {carMission} CarMission.None
set_car_driving_style 0@ {drivingStyle} DrivingMode.AvoidCars
set_car_traction 0@ {traction} 2.0
set_car_strong 0@ {state} True
car_goto_coordinates 0@ {x} 1@ {y} 2@ {z} 3@
set_car_cruise_speed 0@ {maxSpeed} 4@
20@ = 0
return

:Noname_927
3@ = get_ground_z_for_3d_coord 1@ {y} 2@ {z} 3@
car_goto_coordinates 0@ {x} 1@ {y} 2@ {z} 3@
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
return

:Noname_977
if and
  4@ > 3.5
  is_key_pressed KeyCode.Down
  TIMERA >= 75
goto_if_false @Noname_1034
TIMERA = 0
4@ += -0.5
set_car_cruise_speed 0@ {maxSpeed} 4@

:Noname_1034
if and
  4@ < 50.0
  is_key_pressed KeyCode.Up
  TIMERA >= 75
goto_if_false @Noname_1091
TIMERA = 0
4@ += 0.5
set_car_cruise_speed 0@ {maxSpeed} 4@

:Noname_1091
cset_lvar_int_to_lvar_float 10@ =# 4@
10@ *= 2
return

:Noname_1108
if
  20@ == 0
goto_if_false @Noname_1154
20@ = 1
set_car_driving_style 0@ {drivingStyle} DrivingMode.SlowDownForCars
set_car_mission 0@ {carMission} CarMission.Cruise
goto @Noname_1189

:Noname_1154
20@ = 0
set_car_driving_style 0@ {drivingStyle} DrivingMode.AvoidCars
set_car_mission 0@ {carMission} CarMission.None
car_goto_coordinates 0@ {x} 1@ {y} 2@ {z} 3@

:Noname_1189
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
return

:Noname_1211
22@ = 1
task_drive_by $scplayer {targetChar} -1 {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 75
set_time_scale 0.5
return

:Noname_1262
22@ = 0
task_warp_char_into_car_as_driver $scplayer {vehicle} 0@
if
  30@ == 1
goto_if_false @Noname_1328

:Noname_1295
wait 0
  is_char_in_car $scplayer {vehicle} 0@
goto_if_false @Noname_1295
car_goto_coordinates 0@ {x} 1@ {y} 2@ {z} 3@

:Noname_1328
set_time_scale 1.0
return

:Noname_1337
  is_key_pressed 0@
goto_if_false @Noname_1360
wait 0
goto @Noname_1337

:Noname_1360
cleo_return 0 {retParams}

:Noname_1365
cleo_call @Noname_1472 {numArgs} 1 {args} 0@ 0@
cleo_call @Noname_1575 {numArgs} 1 {args} 2@ 2@
call_method 4509088 {struct} 12195720 {numArgs} 4 {pop} 0 {args} 3@ 2@ 1@ 0@
cleo_return 0 {retParams}

:Noname_1431
cleo_call @Noname_1472 {numArgs} 1 {args} 0@ 0@
call_method 4509312 {struct} 12195720 {numArgs} 1 {pop} 0 {args} 0@
cleo_return 0 {retParams}

:Noname_1472
1@ = get_this_script_struct
int_add 2@ = 1@ + 220
2@ = read_memory 2@ {size} 1 {vp} False
if
  2@ == 1
goto_if_false @Noname_1535
1@ = 10783072
goto @Noname_1542

:Noname_1535
1@ += 60

:Noname_1542
0@ *= 4
add_int_lvar_to_int_lvar 1@ += 0@
1@ -= 10787168
cleo_return 1 {retParams} 1@

:Noname_1575
if
  0@ == 0
goto_if_false @Noname_1600
cleo_return 1 {retParams} 0

:Noname_1600
1@ = get_this_script_struct
1@ += 16
1@ = read_memory 1@ {size} 4 {vp} False
sub_int_lvar_from_int_lvar 1@ -= 0@
1@ += 3
cleo_return 1 {retParams} 1@
clear_object_last_weapon_damage 'FREI_11'
nop
 

herqa

Известный
64
9
попробуй открывать файл не открывашкой для тушенки а этим хотя бы https://sannybuilder.com/
исходный код
CLEO:
{$CLEO .cs}

30@ = 0
4@ = 25.0

:Noname_17
wait 0
if
  is_player_playing $player1
goto_if_false @Noname_732
if and
  is_char_in_any_car $scplayer
  not is_char_in_model $scplayer {modelId} 537
  not is_char_in_model $scplayer {modelId} 538
  not is_char_in_any_boat $scplayer
  not is_char_in_flying_vehicle $scplayer
goto_if_false @Noname_309
0@ = store_car_char_is_in_no_save $scplayer
if
  is_key_pressed KeyCode.Z
goto_if_false @Noname_200
if and
  does_vehicle_exist 0@
  1@, 2@, 3@ = get_target_blip_coords
goto_if_false @Noname_188
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
if
  30@ == 0
goto_if_false @Noname_181
gosub @Noname_844
goto @Noname_188

:Noname_181
gosub @Noname_739

:Noname_188
cleo_call @Noname_1337 {numArgs} 1 {args} 90

:Noname_200
if
  22@ == 0
  is_key_pressed KeyCode.Shift
goto_if_false @Noname_262
21@ = get_current_char_weapon $scplayer
if and
  21@ >= 22
  21@ <= 32
goto_if_false @Noname_262
gosub @Noname_1211

:Noname_262
if
  22@ <> 0
goto_if_false @Noname_309
if
  is_key_pressed KeyCode.Shift
goto_if_false @Noname_302
goto @Noname_309

:Noname_302
gosub @Noname_1262

:Noname_309
if
  30@ == 1
goto_if_false @Noname_695
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  is_car_in_water 0@
  is_car_dead 0@
goto_if_false @Noname_361
gosub @Noname_739

:Noname_361
if and
  does_vehicle_exist 0@
  is_car_upsidedown 0@
goto_if_false @Noname_389
gosub @Noname_798

:Noname_389
if
  not does_vehicle_exist 0@
goto_if_false @Noname_419
30@ = 0
goto @Noname_688

:Noname_419
if
  not is_char_in_car $scplayer {vehicle} 0@
goto_if_false @Noname_445
30@ = 0

:Noname_445
if and
  is_key_pressed KeyCode.A
  1@, 2@, 3@ = get_target_blip_coords
goto_if_false @Noname_490
gosub @Noname_927
cleo_call @Noname_1337 {numArgs} 1 {args} 65

:Noname_490
if
  is_key_pressed KeyCode.Space
goto_if_false @Noname_576
load_mission_text 'FTRAIN'
if
  29@ == 0
goto_if_false @Noname_562
cleo_call @Noname_1365 {numArgs} 4 {args} 10 1 -1647 3
29@ = 1

:Noname_562
gosub @Noname_977
goto @Noname_613

:Noname_576
if
  29@ == 1
goto_if_false @Noname_613
29@ = 0
cleo_call @Noname_1431 {numArgs} 1 {args} 10

:Noname_613
if
  locate_stopped_car_2d 0@ {x} 1@ {y} 2@ {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @Noname_654
gosub @Noname_739

:Noname_654
if
  is_key_pressed KeyCode.X
goto_if_false @Noname_688
gosub @Noname_1108
cleo_call @Noname_1337 {numArgs} 1 {args} 88

:Noname_688
goto @Noname_732

:Noname_695
if
  29@ == 1
goto_if_false @Noname_732
29@ = 0
cleo_call @Noname_1431 {numArgs} 1 {args} 10

:Noname_732
goto @Noname_17

:Noname_739
30@ = 0
task_warp_char_into_car_as_driver $scplayer {vehicle} 0@
set_car_traction 0@ {traction} 1.0
mark_car_as_no_longer_needed 0@
set_car_strong 0@ {state} False
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
return

:Noname_798
5@ = get_car_heading 0@
6@, 7@, 8@ = get_car_coordinates 0@
set_car_coordinates 0@ {x} 6@ {y} 7@ {z} 8@
set_car_heading 0@ {heading} 5@
return

:Noname_844
30@ = 1
3@ = get_ground_z_for_3d_coord 1@ {y} 2@ {z} 3@
set_car_mission 0@ {carMission} CarMission.None
set_car_driving_style 0@ {drivingStyle} DrivingMode.AvoidCars
set_car_traction 0@ {traction} 2.0
set_car_strong 0@ {state} True
car_goto_coordinates 0@ {x} 1@ {y} 2@ {z} 3@
set_car_cruise_speed 0@ {maxSpeed} 4@
20@ = 0
return

:Noname_927
3@ = get_ground_z_for_3d_coord 1@ {y} 2@ {z} 3@
car_goto_coordinates 0@ {x} 1@ {y} 2@ {z} 3@
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
return

:Noname_977
if and
  4@ > 3.5
  is_key_pressed KeyCode.Down
  TIMERA >= 75
goto_if_false @Noname_1034
TIMERA = 0
4@ += -0.5
set_car_cruise_speed 0@ {maxSpeed} 4@

:Noname_1034
if and
  4@ < 50.0
  is_key_pressed KeyCode.Up
  TIMERA >= 75
goto_if_false @Noname_1091
TIMERA = 0
4@ += 0.5
set_car_cruise_speed 0@ {maxSpeed} 4@

:Noname_1091
cset_lvar_int_to_lvar_float 10@ =# 4@
10@ *= 2
return

:Noname_1108
if
  20@ == 0
goto_if_false @Noname_1154
20@ = 1
set_car_driving_style 0@ {drivingStyle} DrivingMode.SlowDownForCars
set_car_mission 0@ {carMission} CarMission.Cruise
goto @Noname_1189

:Noname_1154
20@ = 0
set_car_driving_style 0@ {drivingStyle} DrivingMode.AvoidCars
set_car_mission 0@ {carMission} CarMission.None
car_goto_coordinates 0@ {x} 1@ {y} 2@ {z} 3@

:Noname_1189
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
return

:Noname_1211
22@ = 1
task_drive_by $scplayer {targetChar} -1 {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 75
set_time_scale 0.5
return

:Noname_1262
22@ = 0
task_warp_char_into_car_as_driver $scplayer {vehicle} 0@
if
  30@ == 1
goto_if_false @Noname_1328

:Noname_1295
wait 0
  is_char_in_car $scplayer {vehicle} 0@
goto_if_false @Noname_1295
car_goto_coordinates 0@ {x} 1@ {y} 2@ {z} 3@

:Noname_1328
set_time_scale 1.0
return

:Noname_1337
  is_key_pressed 0@
goto_if_false @Noname_1360
wait 0
goto @Noname_1337

:Noname_1360
cleo_return 0 {retParams}

:Noname_1365
cleo_call @Noname_1472 {numArgs} 1 {args} 0@ 0@
cleo_call @Noname_1575 {numArgs} 1 {args} 2@ 2@
call_method 4509088 {struct} 12195720 {numArgs} 4 {pop} 0 {args} 3@ 2@ 1@ 0@
cleo_return 0 {retParams}

:Noname_1431
cleo_call @Noname_1472 {numArgs} 1 {args} 0@ 0@
call_method 4509312 {struct} 12195720 {numArgs} 1 {pop} 0 {args} 0@
cleo_return 0 {retParams}

:Noname_1472
1@ = get_this_script_struct
int_add 2@ = 1@ + 220
2@ = read_memory 2@ {size} 1 {vp} False
if
  2@ == 1
goto_if_false @Noname_1535
1@ = 10783072
goto @Noname_1542

:Noname_1535
1@ += 60

:Noname_1542
0@ *= 4
add_int_lvar_to_int_lvar 1@ += 0@
1@ -= 10787168
cleo_return 1 {retParams} 1@

:Noname_1575
if
  0@ == 0
goto_if_false @Noname_1600
cleo_return 1 {retParams} 0

:Noname_1600
1@ = get_this_script_struct
1@ += 16
1@ = read_memory 1@ {size} 4 {vp} False
sub_int_lvar_from_int_lvar 1@ -= 0@
1@ += 3
cleo_return 1 {retParams} 1@
clear_object_last_weapon_damage 'FREI_11'
nop
не братан ты мне какую то хуйню советуешь