Erich_Kanarik Posted September 13, 2010 Share Posted September 13, 2010 (edited) im editing an script, the code is, ((idk how to use that CODE thingye, + i started scripting 30 minutes before this post, so people can know im a newbie in scripting with CLEO)):{$VERSION 3.1.0027} {$CLEO .cs} //-------------MAIN--------------- 0000: NOP :NONAME_2 wait 0 if Player.Defined($PLAYER_CHAR) else_jump @NONAME_2 if and 0AB0: key_pressed 9 0AB0: key_pressed 111 else_jump @NONAME_2 Model.Load(#MINIGUN) Model.Load(#M4) Model.Load(#CELLPHONE) Model.Load(#ARMY) Model.Load(#PATRIOT) 04C4: store_coords_to 5@ 6@ 7@ from_actor $PLAYER_ACTOR with_offset 50.0 0.0 5.0 02C1: store_to 5@ 6@ 7@ car_path_coords_closest_to 5@ 6@ 7@ 04C4: store_coords_to 8@ 9@ 10@ from_actor $PLAYER_ACTOR with_offset 0.0 5.0 0.0 :NONAME_144 wait 0 if Model.Available(#MINIGUN) Model.Available(#M4) Model.Available(#CELLPHONE) Model.Available(#ARMY) Model.Available(#PATRIOT) else_jump @NONAME_144 0729: AS_actor $PLAYER_ACTOR hold_cellphone 1 wait 2500 00BB: show_text_lowpriority GXT 'GANG_1' time 2000 flag 1 00BB: show_text_lowpriority GXT 'GANG_2' time 2000 flag 1 wait 4000 0729: AS_actor $PLAYER_ACTOR hold_cellphone 0 wait 3000 1@ = Car.Create(#PATRIOT, 5@, 6@, 7@) 03CC: enable_car 1@ stuck_check_distance_to 2.0 time_to 2000 0229: set_car 1@ primary_color_to 0 secondary_color_to 1 11@ = Marker.CreateAboveCar(1@) 07E0: set_marker 11@ type_to 1 0674: set_car_model #PATRIOT numberplate "ARMY4CJ_" 00AE: set_car 1@ traffic_behaviour_to 2 Car.SetImmunities(1@, 1, 0, 1, 0, 0) 0129: 2@ = create_actor_pedtype 8 model #ARMY in_car 1@ driverseat 01C8: 3@ = create_actor_pedtype 8 model #ARMY in_car 1@ passenger_seat 0 01C8: 4@ = create_actor_pedtype 8 model #ARMY in_car 1@ passenger_seat 1 01C8: 13@ = create_actor_pedtype 8 model #ARMY in_car 1@ passenger_seat 2 Actor.Health(2@) = 1125 Actor.Health(3@) = 1125 Actor.Health(4@) = 1125 Actor.Health(13@) = 1125 Car.DriveTo(1@, 8@, 9@, 10@) :NONAME_440 wait 0 if 01B0: car 1@ sphere 0 in_sphere 8@ 9@ 10@ radius 10.0 10.0 10.0 stopped else_jump @NONAME_440 05CD: AS_actor 2@ exit_car 1@ 05CD: AS_actor 3@ exit_car 1@ 05CD: AS_actor 4@ exit_car 1@ 05CD: AS_actor 13@ exit_car 1@ wait 500 Marker.Disable(11@) 14@ = Marker.CreateAboveActor(2@) 15@ = Marker.CreateAboveActor(3@) 16@ = Marker.CreateAboveActor(4@) 17@ = Marker.CreateAboveActor(13@) 07E0: set_marker 14@ type_to 1 07E0: set_marker 15@ type_to 1 07E0: set_marker 16@ type_to 1 07E0: set_marker 17@ type_to 1 01B2: give_actor 2@ weapon 31 ammo 5000 // Load the weapon model before using this 01B2: give_actor 3@ weapon 31 ammo 5000 // Load the weapon model before using this 01B2: give_actor 4@ weapon 31 ammo 5000 // Load the weapon model before using this 01B2: give_actor 13@ weapon 35 ammo 5000 // Load the weapon model before using this wait 250 07AF: 12@ = player $PLAYER_CHAR group 0630: put_actor $PLAYER_ACTOR in_group 12@ as_leader 0631: put_actor 2@ in_group 12@ 0631: put_actor 3@ in_group 12@ 0631: put_actor 4@ in_group 12@ 0631: put_actor 13@ in_group 12@ :NONAME_681 wait 0 if and Actor.Dead(2@) Actor.Dead(3@) Actor.Dead(4@) Actor.Dead(13@) else_jump @NONAME_681 Marker.Disable(14@) Marker.Disable(15@) Marker.Disable(16@) Marker.Disable(17@) wait 2000 Actor.DestroyWithFade(2@) Actor.DestroyWithFade(3@) Actor.DestroyWithFade(4@) Actor.DestroyWithFade(13@) wait 10000 jump @NONAME_2 i changed the ROCKETLA into MINIGUN at the upper place, will that work? Edited September 13, 2010 by Erich_Kanarik Link to comment https://gtaforums.com/topic/459084-q-need-help-in-editing-an-script/ Share on other sites More sharing options...
Erem Posted September 13, 2010 Share Posted September 13, 2010 Attention: The Mod Showroom is only for posting previews/downloads of completed or near finished mods. All help topics should be posted in the Editing Discussion forums. Help topics and mod requests posted here will be locked or binned. Thank you. You might have better luck posting your question here: http://www.gtaforums.com/index.php?showforum=49 (GTAForums.com » GTA Modding » III Era Modding » III Coding) Link to comment https://gtaforums.com/topic/459084-q-need-help-in-editing-an-script/#findComment-1060124456 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