skatefilter5 Posted February 1, 2017 Share Posted February 1, 2017 (edited) I need help whenever I put the actors in the vehicles when it spawns anywhere when I activate the game crashes because I'm don't what I'm doing wrong. Here it is: {$CLEO .cs} //-------------MAIN--------------- thread 'ZOMBIE' wait 100 :ZOMBIE_LOAD wait 0 if and 0AB0: key_pressed 68 0AB0: key_pressed 48 else_jump @ZOMBIE_LOAD // Player.Defined($PLAYER_CHAR) jf @ZOMBIE_LOAD //Model.Load(#SAVANNA) Model.Load(#CELLPHONE) Model.Load(#cwmyhb1) Model.Load(#wmybmx) Model.Load(#desert_eagle) Model.Load(#PATRIOT) Model.Load(#chnsaw) 06E9: load_car_component #NTO_B_S 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset -800.0 -800.0 0.0 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 800.0 800.0 0.0 053E: [email protected] = get_random_car_with_model -1 in_rectangle_cornerA [email protected] [email protected] cornerB [email protected] [email protected] //06E9: load_car_component #NTO_B_S $WAV15 = Audiostream.Load("CLEO\SOUND\bobbyzombies.mp3") Audiostream.PerformAction($WAV15, PLAY) 0729: AS_actor $PLAYER_ACTOR hold_cellphone 1 00BC: show_text_highpriority GXT 'H28' time 3000 flag 1 // ~s~Come back between 9:00 and 17:00. wait 3000 0729: AS_actor $PLAYER_ACTOR hold_cellphone 0 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 2.0 -1.0 //038B: load_requested_models [email protected] = Car.Angle([email protected]) [email protected] = Car.Create(#PATRIOT, [email protected], [email protected], [email protected]) Car.Angle([email protected]) = [email protected] 07AF: $PLAYER_GROUP = player $PLAYER_CHAR group [email protected] = Actor.Create(Gang2, #wmybmx, [email protected], [email protected], [email protected]) [email protected] = Actor.Create(Gang2, #cwmyhb1, [email protected], [email protected], [email protected]) [email protected] = Actor.Create(Gang2, #cwmyhb1, [email protected], [email protected], [email protected]) [email protected] = Actor.Create(Gang2, #cwmyhb1, [email protected], [email protected], [email protected]) 0631: put_actor [email protected] in_group $PLAYER_GROUP 0446: set_actor [email protected] immune_to_headshots 0 0446: set_actor [email protected] immune_to_headshots 0 0446: set_actor [email protected] immune_to_headshots 0 0446: set_actor [email protected] immune_to_headshots 0 Actor.Health([email protected]) = 25000 Actor.Health([email protected]) = 15000 Actor.Health([email protected]) = 15000 Actor.Health([email protected]) = 15000 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.0 0.0 0.0 0229: set_car [email protected] primary_color_to 4 secondary_color_to 2 06ED: set_car [email protected] paintjob 0 06E7: [email protected] = add_car_component #NTO_B_S to_car [email protected] [email protected] = Actor.CreateAsDriver(Gang2, #wmybmx, [email protected]) [email protected] = Actor.CreateAsPassenger(Gang2, #cwmyhb1, [email protected], 0) [email protected] = Actor.CreateAsPassenger(Gang2, #cwmyhb1, [email protected], 1) [email protected] = Actor.CreateAsPassenger(Gang2, #cwmyhb1, [email protected], 2) 0A09: set_actor [email protected] muted 1 // versionB 0A09: set_actor [email protected] muted 1 // versionB 0A09: set_actor [email protected] muted 1 // versionB Actor.GiveWeaponAndAmmo([email protected], deserteagle, 99999) Actor.GiveWeaponAndAmmo([email protected], chainsaw, 99999) Actor.GiveWeaponAndAmmo([email protected], chainsaw, 99999) Actor.GiveWeaponAndAmmo([email protected], chainsaw, 99999) 07DD: set_actor [email protected] attack_rate 100 // previously known as temper_to 07DD: set_actor [email protected] attack_rate 100 // previously known as temper_to 07DD: set_actor [email protected] attack_rate 100 // previously known as temper_to wait 1000 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 0.0 1.0 Car.DriveTo([email protected], [email protected], [email protected], [email protected]) Car.SetSpeedInstantly([email protected], 20.0) Car.SetDriverBehaviour([email protected], FollowRoad) 00AE: set_car [email protected] traffic_behaviour_to 2 wait 800 jump @STOP :STOP if 0202: actor $PLAYER_ACTOR near_car [email protected] radius 10.0 10.0 sphere 0 jf @STOP Car.SetMaxSpeed([email protected], 0.0) wait 0 0633: AS_actor [email protected] exit_car 0633: AS_actor [email protected] exit_car 0633: AS_actor [email protected] exit_car 0633: AS_actor [email protected] exit_car jump @NONAME_194 :NONAME_194 wait 0 if and 0AB0: key_pressed 16 0AB0: key_pressed 17 0AB0: key_pressed 116 else_jump @NONAME_220 jump @NONAME_248 :NONAME_220 wait 500 if and // Actor.Dead([email protected]) Actor.Dead([email protected]) Actor.Dead([email protected]) Actor.Dead([email protected]) else_jump @NONAME_194 jump @NONAME_50 :NONAME_50 wait 0 $WAV15 = Audiostream.Load("CLEO\SOUND\bobbyzombiesdied.mp3") Audiostream.PerformAction($WAV15, PLAY) wait 2000 00BC: show_text_highpriority GXT 'H30' time 3000 flag 1 // ~s~Come back between 9:00 and 17:00. wait 3000 Actor.DestroyInstantly([email protected]) Actor.DestroyInstantly([email protected]) Actor.DestroyInstantly([email protected]) Actor.DestroyInstantly([email protected]) 01C3: remove_references_to_car [email protected] jump @ZOMBIE_LOAD :NONAME_248 Audiostream.PerformAction($WAV15, STOP) Audiostream.Release($WAV15) wait 2000 $WAV15 = Audiostream.Load("CLEO\SOUND\bobbybye.mp3") Audiostream.PerformAction($WAV15, PLAY) wait 2000 00BC: show_text_highpriority GXT 'H29' time 3000 flag 1 // ~s~Come back between 9:00 and 17:00. Actor.DestroyInstantly([email protected]) Actor.DestroyInstantly([email protected]) Actor.DestroyInstantly([email protected]) Actor.DestroyInstantly([email protected]) 01C3: remove_references_to_car [email protected] wait 7000 jump @ZOMBIE_LOAD Edited February 1, 2017 by skatefilter5 Link to comment Share on other sites More sharing options...
Sanmodder Posted December 20, 2017 Share Posted December 20, 2017 I've fixed this scriptI will not tell you mistakesLook at your srypt and lookon corrected const _WAV15 = [email protected]{$CLEO .CS}thread "0000" :5while truewait 0if Player.Defined(0) then if 0ADC: test_cheat "V" //0AB0: key_pressed 68 //0AB0: key_pressed 48 then break end endendgoto @7:7Model.Load(#savanna)Model.Load(#CELLPHONE)Model.Load(#cwmyhb1)Model.Load(#wmybmx)Model.Load(#desert_eagle)Model.Load(#PATRIOT)Model.Load(#chnsaw)06E9: load_car_component #NTO_B_S038B: load_requested_modelsgoto @8:8IF OR not Model.Available(#savanna) not Model.Available(#cwmyhb1) not Model.Available(#wmybmx) not Model.Available(#desert_eagle) not Model.Available(#PATRIOT) not Model.Available(#chnsaw) 86EA: not car_component #NTO_B_S available THEN0ACA: "ERROR"goto @5ENDif 0AAB: file_exists "CLEO\SOUND\bobbyzombies.mp3" //securitythen_WAV15 = Audiostream.Load("CLEO\SOUND\bobbyzombies.mp3")Audiostream.PerformAction(_WAV15, PLAY)end///////////////////////////////////////////////////////////////////////////////////////////////////0729: AS_actor $PLAYER_ACTOR hold_cellphone 100BC: show_text_highpriority GXT 'H28' time 3000 flag 1 // ~s~Come back between 9:00 and 17:00.wait 30000729: AS_actor $PLAYER_ACTOR hold_cellphone 0 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 5.0 [email protected] = actor.Angle($PLAYER_ACTOR)[email protected] = Car.Create(#PATRIOT, [email protected], [email protected], [email protected])Car.Angle([email protected]) = [email protected]: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 2.0 [email protected] = Actor.Create(Gang2, #wmybmx, [email protected], [email protected], [email protected])04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 2.0 0.0 [email protected] = Actor.Create(Gang2, #cwmyhb1, [email protected], [email protected], [email protected])04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset -2.0 0.0 [email protected] = Actor.Create(Gang2, #cwmyhb1, [email protected], [email protected], [email protected])04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 -2.0 [email protected] = Actor.Create(Gang2, #cwmyhb1, [email protected], [email protected], [email protected])07AF: $PLAYER_GROUP = player $PLAYER_CHAR group 0631: put_actor [email protected] in_group $PLAYER_GROUP 0446: set_actor [email protected] immune_to_headshots 00446: set_actor [email protected] immune_to_headshots 00446: set_actor [email protected] immune_to_headshots 00446: set_actor [email protected] immune_to_headshots 0Actor.Health([email protected]) = 25000Actor.Health([email protected]) = 15000 Actor.Health([email protected]) = 15000Actor.Health([email protected]) = 15000/////////////////////////////////////////////////////////////////////////////////////////////////04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 40.0 40.0 0.0 04D3: get_nearest_car_path_coords_from [email protected] [email protected] [email protected] type 0 store_to [email protected] [email protected] [email protected] [email protected] = Car.Create(#savanna, [email protected], [email protected], [email protected])0229: set_car [email protected] primary_color_to 4 secondary_color_to 2 06ED: set_car [email protected] paintjob 0 06E7: [email protected] = add_car_component #NTO_B_S to_car [email protected] [email protected] = Actor.CreateAsDriver(Gang2, #wmybmx, [email protected])[email protected] = Actor.CreateAsPassenger(Gang2, #cwmyhb1, [email protected], 0)[email protected] = Actor.CreateAsPassenger(Gang2, #cwmyhb1, [email protected], 1)[email protected] = Actor.CreateAsPassenger(Gang2, #cwmyhb1, [email protected], 2)0A09: set_actor [email protected] muted 1 // versionB0A09: set_actor [email protected] muted 1 // versionB0A09: set_actor [email protected] muted 1 // versionBActor.GiveWeaponAndAmmo([email protected], deserteagle, 99999)Actor.GiveWeaponAndAmmo([email protected], chainsaw, 99999)Actor.GiveWeaponAndAmmo([email protected], chainsaw, 99999)Actor.GiveWeaponAndAmmo([email protected], chainsaw, 99999)07DD: set_actor [email protected] attack_rate 100 // previously known as temper_to 07DD: set_actor [email protected] attack_rate 100 // previously known as temper_to 07DD: set_actor [email protected] attack_rate 100 // previously known as temper_to wait 1000Car.SetSpeedInstantly([email protected], 25.0)Car.SetDriverBehaviour([email protected], drivetoplayer)00AE: set_car [email protected] traffic_behaviour_to 2072F: enable_car [email protected] stuck_check_distance 0.5 time 4000 and_restore_if stuck 1 flipped 1 unk_place_on_road_properly 1 to_path 7 // extended 03CC 0190: add_car [email protected] to_flipped_check // 6 max wait 80goto @9:9while true wait 0if not car.Wrecked([email protected])then if 0202: actor $PLAYER_ACTOR near_car [email protected] radius 10.0 10.0 sphere 0thenbreak endendif or actor.dead($PLAYER_ACTOR) wasted_or_busted 0741: actor $PLAYER_ACTOR busted then goto @3 end if car.Wrecked([email protected]) then 0ACA: "ERROR" goto @3 end end Car.SetMaxSpeed([email protected], 0.0)wait 0 0633: AS_actor [email protected] exit_car 0633: AS_actor [email protected] exit_car 0633: AS_actor [email protected] exit_car 0633: AS_actor [email protected] exit_cargoto @00//////////////////////////////////////////////////////////////////////////:00 while truewait 0 if 0ADC: test_cheat "b" //0AB0: key_pressed 17 //0AB0: key_pressed 116then goto @1 endwait 0 if and Actor.Dead([email protected]) Actor.Dead([email protected]) Actor.Dead([email protected]) Actor.Dead([email protected])thengoto @2endend :2wait 0if 0AAB: file_exists "CLEO\SOUND\bobbyzombiesdied.mp3" //security then_WAV15 = Audiostream.Load("CLEO\SOUND\bobbyzombiesdied.mp3")Audiostream.PerformAction(_WAV15, PLAY)endwait 200000BC: show_text_highpriority GXT 'H30' time 3000 flag 1 // ~s~Come back between 9:00 and 17:00.wait 3000goto @3:1wait 2000 if 0AAB: file_exists "CLEO\SOUND\bobbybye.mp3" //security then _WAV15 = Audiostream.Load("CLEO\SOUND\bobbybye.mp3")Audiostream.PerformAction(_WAV15, PLAY)endwait 200000BC: show_text_highpriority GXT 'H29' time 3000 flag 1 // ~s~Come back between 9:00 and 17:00.:3 Actor.DestroyInstantly([email protected])Actor.DestroyInstantly([email protected])Actor.DestroyInstantly([email protected])Actor.DestroyInstantly([email protected])01C3: remove_references_to_car [email protected]([email protected])Actor.DestroyInstantly([email protected])Actor.DestroyInstantly([email protected])Actor.DestroyInstantly([email protected])01C3: remove_references_to_car [email protected] 700 jump @5 Link to comment Share on other sites More sharing options...
Junior_Djjr Posted December 21, 2017 Share Posted December 21, 2017 (edited) goto @7 :7Why jump to the next line?The scripts are already read from top to bottom, you don't have to read the line below. thread "0000"Why thread name?You didn't use this benefit, and chose a common name, if another mod chooses to end the thread name "0000" will end this script. not Model.Available(#savanna)Why check if loaded? You already loaded with load_requested_models. 0AAB: file_exists "CLEO\SOUND\bobbyzombies.mp3" //securityWhen loading audiostream basically already check if the file exists. wasted_or_bustedThis opcode isn't for custom scripts. In :00 you used wait 0 twice inside loop. You didn't released audiostreams. Fixed: const _WAV15 = [email protected] AudiostreamPlayed = [email protected]{$cleo}0000: while true wait 0 if Player.Defined(0) then if 0ADC: test_cheat "V" //if and //0AB0: key_pressed 68 //0AB0: key_pressed 48 then gosub @start end endend:startModel.Load(#savanna)Model.Load(#CELLPHONE)Model.Load(#cwmyhb1)Model.Load(#wmybmx)Model.Load(#desert_eagle)Model.Load(#PATRIOT)Model.Load(#chnsaw)06E9: load_car_component #NTO_B_S038B: load_requested_modelsgosub @play_bobbyzombies///////////////////////////////////////////////////////////////////////////////////////////////////0729: AS_actor $PLAYER_ACTOR hold_cellphone 100BC: show_text_highpriority GXT 'H28' time 3000 flag 1wait 30000729: AS_actor $PLAYER_ACTOR hold_cellphone 0 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 5.0 [email protected] = actor.Angle($PLAYER_ACTOR)[email protected] = Car.Create(#PATRIOT, [email protected], [email protected], [email protected])Car.Angle([email protected]) = [email protected]: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 2.0 [email protected] = Actor.Create(Gang2, #wmybmx, [email protected], [email protected], [email protected])04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 2.0 0.0 [email protected] = Actor.Create(Gang2, #cwmyhb1, [email protected], [email protected], [email protected])04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset -2.0 0.0 [email protected] = Actor.Create(Gang2, #cwmyhb1, [email protected], [email protected], [email protected])04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 -2.0 [email protected] = Actor.Create(Gang2, #cwmyhb1, [email protected], [email protected], [email protected])07AF: $PLAYER_GROUP = player $PLAYER_CHAR group 0631: put_actor [email protected] in_group $PLAYER_GROUP 0446: set_actor [email protected] immune_to_headshots 00446: set_actor [email protected] immune_to_headshots 00446: set_actor [email protected] immune_to_headshots 00446: set_actor [email protected] immune_to_headshots 0Actor.Health([email protected]) = 25000Actor.Health([email protected]) = 15000 Actor.Health([email protected]) = 15000Actor.Health([email protected]) = 15000/////////////////////////////////////////////////////////////////////////////////////////////////04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 40.0 40.0 0.0 04D3: get_nearest_car_path_coords_from [email protected] [email protected] [email protected] type 0 store_to [email protected] [email protected] [email protected] [email protected] = Car.Create(#savanna, [email protected], [email protected], [email protected])0229: set_car [email protected] primary_color_to 4 secondary_color_to 2 06ED: set_car [email protected] paintjob 0 06E7: [email protected] = add_car_component #NTO_B_S to_car [email protected] [email protected] = Actor.CreateAsDriver(Gang2, #wmybmx, [email protected])[email protected] = Actor.CreateAsPassenger(Gang2, #cwmyhb1, [email protected], 0)[email protected] = Actor.CreateAsPassenger(Gang2, #cwmyhb1, [email protected], 1)[email protected] = Actor.CreateAsPassenger(Gang2, #cwmyhb1, [email protected], 2)0A09: set_actor [email protected] muted 1 // versionB0A09: set_actor [email protected] muted 1 // versionB0A09: set_actor [email protected] muted 1 // versionBActor.GiveWeaponAndAmmo([email protected], deserteagle, 99999)Actor.GiveWeaponAndAmmo([email protected], chainsaw, 99999)Actor.GiveWeaponAndAmmo([email protected], chainsaw, 99999)Actor.GiveWeaponAndAmmo([email protected], chainsaw, 99999)07DD: set_actor [email protected] attack_rate 100 // previously known as temper_to 07DD: set_actor [email protected] attack_rate 100 // previously known as temper_to 07DD: set_actor [email protected] attack_rate 100 // previously known as temper_to Car.SetSpeedInstantly([email protected], 25.0)Car.SetDriverBehaviour([email protected], drivetoplayer)00AE: set_car [email protected] traffic_behaviour_to 2072F: enable_car [email protected] stuck_check_distance 0.5 time 4000 and_restore_if stuck 1 flipped 1 unk_place_on_road_properly 1 to_path 7 // extended 03CC 0190: add_car [email protected] to_flipped_check // 6 max while true wait 0 if not car.Wrecked([email protected]) then if 0202: actor $PLAYER_ACTOR near_car [email protected] radius 10.0 10.0 sphere 0 then break end end if or actor.dead($PLAYER_ACTOR) 0741: actor $PLAYER_ACTOR busted then gosub @release return // end end if car.Wrecked([email protected]) then 0ACA: "ERROR" gosub @release return // end end endCar.SetMaxSpeed([email protected], 0.0)0633: AS_actor [email protected] exit_car 0633: AS_actor [email protected] exit_car 0633: AS_actor [email protected] exit_car 0633: AS_actor [email protected] exit_car//////////////////////////////////////////////////////////////////////////while true wait 0 if 0ADC: test_cheat "b" //if or //0AB0: key_pressed 17 //0AB0: key_pressed 116 then gosub @play_bobbybye break end if and Actor.Dead([email protected]) Actor.Dead([email protected]) Actor.Dead([email protected]) Actor.Dead([email protected]) then gosub @play_bobbyzombiesdied break endendreturn //end //////////////////////////////////////////////////////////////////////////:play_bobbyzombiesgosub @unload_audiostream_if_playedif _WAV15 = Audiostream.Load("CLEO\SOUND\bobbyzombies.mp3")then Audiostream.PerformAction(_WAV15, PLAY) AudiostreamPlayed = trueendreturn:play_bobbyzombiesdiedgosub @unload_audiostream_if_playedif _WAV15 = Audiostream.Load("CLEO\SOUND\bobbyzombiesdied.mp3")then Audiostream.PerformAction(_WAV15, PLAY)endwait 200000BC: show_text_highpriority GXT 'H30' time 3000 flag 1wait 3000gosub @releasereturn:play_bobbybyewait 2000gosub @unload_audiostream_if_played if _WAV15 = Audiostream.Load("CLEO\SOUND\bobbybye.mp3")then Audiostream.PerformAction(_WAV15, PLAY)endwait 200000BC: show_text_highpriority GXT 'H29' time 3000 flag 1gosub @releasereturn:unload_audiostream_if_playedif AudiostreamPlayed == truethen Audiostream.Release(_WAV15) AudiostreamPlayed = falseendreturn //////////////////////////////////////////////////////////////////////////:releaseActor.DestroyWithFade([email protected])Actor.DestroyWithFade([email protected])Actor.DestroyWithFade([email protected])Actor.DestroyWithFade([email protected])01C3: remove_references_to_car [email protected]([email protected])Actor.DestroyWithFade([email protected])Actor.DestroyWithFade([email protected])Actor.DestroyWithFade([email protected])01C3: remove_references_to_car [email protected] @unload_audiostream_if_playedreturn Edited December 21, 2017 by Junior_Djjr Sanmodder 1 Link to comment Share on other sites More sharing options...
Sanmodder Posted December 21, 2017 Share Posted December 21, 2017 goto @7 :7Why jump to the next line?The scripts are already read from top to bottom, you don't have to read the line below. thread "0000"Why thread name?You didn't use this benefit, and chose a common name, if another mod chooses to end the thread name "0000" will end this script. not Model.Available(#savanna)Why check if loaded? You already loaded with load_requested_models. 0AAB: file_exists "CLEO\SOUND\bobbyzombies.mp3" //securityWhen loading audiostream basically already check if the file exists. wasted_or_bustedThis opcode isn't for custom scripts. In :00 you used wait 0 twice inside loop. You didn't released audiostreams. Fixed: const _WAV15 = [email protected] AudiostreamPlayed = [email protected]end{$cleo}0000: while true wait 0 if Player.Defined(0) then if 0ADC: test_cheat "V" //if and //0AB0: key_pressed 68 //0AB0: key_pressed 48 then gosub @start end endend:startModel.Load(#savanna)Model.Load(#CELLPHONE)Model.Load(#cwmyhb1)Model.Load(#wmybmx)Model.Load(#desert_eagle)Model.Load(#PATRIOT)Model.Load(#chnsaw)06E9: load_car_component #NTO_B_S038B: load_requested_modelsgosub @play_bobbyzombies///////////////////////////////////////////////////////////////////////////////////////////////////0729: AS_actor $PLAYER_ACTOR hold_cellphone 100BC: show_text_highpriority GXT 'H28' time 3000 flag 1wait 30000729: AS_actor $PLAYER_ACTOR hold_cellphone 0 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 5.0 0.0[email protected] = actor.Angle($PLAYER_ACTOR)[email protected] = Car.Create(#PATRIOT, [email protected], [email protected], [email protected])Car.Angle([email protected]) = [email protected]04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 2.0 0.0[email protected] = Actor.Create(Gang2, #wmybmx, [email protected], [email protected], [email protected])04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 2.0 0.0 0.0[email protected] = Actor.Create(Gang2, #cwmyhb1, [email protected], [email protected], [email protected])04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset -2.0 0.0 0.0[email protected] = Actor.Create(Gang2, #cwmyhb1, [email protected], [email protected], [email protected])04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 -2.0 0.0[email protected] = Actor.Create(Gang2, #cwmyhb1, [email protected], [email protected], [email protected])07AF: $PLAYER_GROUP = player $PLAYER_CHAR group 0631: put_actor [email protected] in_group $PLAYER_GROUP 0446: set_actor [email protected] immune_to_headshots 00446: set_actor [email protected] immune_to_headshots 00446: set_actor [email protected] immune_to_headshots 00446: set_actor [email protected] immune_to_headshots 0Actor.Health([email protected]) = 25000Actor.Health([email protected]) = 15000 Actor.Health([email protected]) = 15000Actor.Health([email protected]) = 15000/////////////////////////////////////////////////////////////////////////////////////////////////04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 40.0 40.0 0.0 04D3: get_nearest_car_path_coords_from [email protected] [email protected] [email protected] type 0 store_to [email protected] [email protected] [email protected] [email protected] = Car.Create(#savanna, [email protected], [email protected], [email protected])0229: set_car [email protected] primary_color_to 4 secondary_color_to 2 06ED: set_car [email protected] paintjob 0 06E7: [email protected] = add_car_component #NTO_B_S to_car [email protected] [email protected] = Actor.CreateAsDriver(Gang2, #wmybmx, [email protected])[email protected] = Actor.CreateAsPassenger(Gang2, #cwmyhb1, [email protected], 0)[email protected] = Actor.CreateAsPassenger(Gang2, #cwmyhb1, [email protected], 1)[email protected] = Actor.CreateAsPassenger(Gang2, #cwmyhb1, [email protected], 2)0A09: set_actor [email protected] muted 1 // versionB0A09: set_actor [email protected] muted 1 // versionB0A09: set_actor [email protected] muted 1 // versionBActor.GiveWeaponAndAmmo([email protected], deserteagle, 99999)Actor.GiveWeaponAndAmmo([email protected], chainsaw, 99999)Actor.GiveWeaponAndAmmo([email protected], chainsaw, 99999)Actor.GiveWeaponAndAmmo([email protected], chainsaw, 99999)07DD: set_actor [email protected] attack_rate 100 // previously known as temper_to 07DD: set_actor [email protected] attack_rate 100 // previously known as temper_to 07DD: set_actor [email protected] attack_rate 100 // previously known as temper_to Car.SetSpeedInstantly([email protected], 25.0)Car.SetDriverBehaviour([email protected], drivetoplayer)00AE: set_car [email protected] traffic_behaviour_to 2072F: enable_car [email protected] stuck_check_distance 0.5 time 4000 and_restore_if stuck 1 flipped 1 unk_place_on_road_properly 1 to_path 7 // extended 03CC 0190: add_car [email protected] to_flipped_check // 6 max while true wait 0 if not car.Wrecked([email protected]) then if 0202: actor $PLAYER_ACTOR near_car [email protected] radius 10.0 10.0 sphere 0 then break end end if or actor.dead($PLAYER_ACTOR) 0741: actor $PLAYER_ACTOR busted then gosub @release return // end end if car.Wrecked([email protected]) then 0ACA: "ERROR" gosub @release return // end end endCar.SetMaxSpeed([email protected], 0.0)0633: AS_actor [email protected] exit_car 0633: AS_actor [email protected] exit_car 0633: AS_actor [email protected] exit_car 0633: AS_actor [email protected] exit_car//////////////////////////////////////////////////////////////////////////while true wait 0 if 0ADC: test_cheat "b" //if or //0AB0: key_pressed 17 //0AB0: key_pressed 116 then gosub @play_bobbybye break end if and Actor.Dead([email protected]) Actor.Dead([email protected]) Actor.Dead([email protected]) Actor.Dead([email protected]) then gosub @play_bobbyzombiesdied break endendreturn //end //////////////////////////////////////////////////////////////////////////:play_bobbyzombiesgosub @unload_audiostream_if_playedif _WAV15 = Audiostream.Load("CLEO\SOUND\bobbyzombies.mp3")then Audiostream.PerformAction(_WAV15, PLAY) AudiostreamPlayed = trueendreturn:play_bobbyzombiesdiedgosub @unload_audiostream_if_playedif _WAV15 = Audiostream.Load("CLEO\SOUND\bobbyzombiesdied.mp3")then Audiostream.PerformAction(_WAV15, PLAY)endwait 200000BC: show_text_highpriority GXT 'H30' time 3000 flag 1wait 3000gosub @releasereturn:play_bobbybyewait 2000gosub @unload_audiostream_if_played if _WAV15 = Audiostream.Load("CLEO\SOUND\bobbybye.mp3")then Audiostream.PerformAction(_WAV15, PLAY)endwait 200000BC: show_text_highpriority GXT 'H29' time 3000 flag 1gosub @releasereturn:unload_audiostream_if_playedif AudiostreamPlayed == truethen Audiostream.Release(_WAV15) AudiostreamPlayed = falseendreturn //////////////////////////////////////////////////////////////////////////:releaseActor.DestroyWithFade([email protected])Actor.DestroyWithFade([email protected])Actor.DestroyWithFade([email protected])Actor.DestroyWithFade([email protected])01C3: remove_references_to_car [email protected]Actor.DestroyWithFade([email protected])Actor.DestroyWithFade([email protected])Actor.DestroyWithFade([email protected])Actor.DestroyWithFade([email protected])01C3: remove_references_to_car [email protected]gosub @unload_audiostream_if_playedreturn 1 // you can with or without this goto @ 1 2 // names of injections can be written in different ways to get the same 3 // Available model is very important as it downloads various mods from the internet in the original game, rather it does not check errors in txd models, dff 4 // file_exists can with this and without how it will not find a crash it is better to check it see -------------------------------------------------- -------------------------------------------------- ------- script 0000 Local variables dump: 0 6913 7169 7425 7681 3331 3587 -1 -992334079 1095286784 1117701929 7937 8193 8449 8705 -1001714401 1096335360 1158831522 -992431171 1096225033 1 0 0 0 0 0 0 0 0 0 0 0 68786 1084253534 ******************************************** 00000980 & 0: [00D6] IF 0 00000984 & 0: [0ADC] TEST_CHEAT "B" // TRUE 00000989 & 1: [004D] GOTO_IF_FALSE -1003 00000996 & 1: [0002] GOTO -1180 00001180 & 1: [0AAD] SET_AUDIO_STREAM_STATE -995119104 0 5 // wasted_or_busted sometimes works well and you need 2 at a time then works 6 // You did not released audiostreams I do not know how the author wanted Link to comment Share on other sites More sharing options...
GuruGuru Posted December 21, 2017 Share Posted December 21, 2017 1 // you can with or without this goto @ 1 2 // names of injections can be written in different ways to get the same 3 // Available model is very important as it downloads various mods from the internet in the original game, rather it does not check errors in txd models, dff 4 // file_exists can with this and without how it will not find a crash it is better to check it see -------------------------------------------------- -------------------------------------------------- ------- script 0000 Local variables dump: 0 6913 7169 7425 7681 3331 3587 -1 -992334079 1095286784 1117701929 7937 8193 8449 8705 -1001714401 1096335360 1158831522 -992431171 1096225033 1 0 0 0 0 0 0 0 0 0 0 0 68786 1084253534 ******************************************** 00000980 & 0: [00D6] IF 0 00000984 & 0: [0ADC] TEST_CHEAT "B" // TRUE 00000989 & 1: [004D] GOTO_IF_FALSE -1003 00000996 & 1: [0002] GOTO -1180 00001180 & 1: [0AAD] SET_AUDIO_STREAM_STATE -995119104 0 5 // wasted_or_busted sometimes works well and you need 2 at a time then works 6 // You did not released audiostreams I do not know how the author wanted Could you stop talking sh*t please? Junior_Djjr 1 Link to comment Share on other sites More sharing options...
Sanmodder Posted December 21, 2017 Share Posted December 21, 2017 I do not understand your comment Link to comment Share on other sites More sharing options...
Junior_Djjr Posted December 22, 2017 Share Posted December 22, 2017 (edited) Seriously, you need to study. Don't go out saying what you "think", programming is an exact science. Edited December 22, 2017 by Junior_Djjr Sanmodder 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now