loczek47 Posted November 28, 2008 Share Posted November 28, 2008 (edited) Hi , I was trying to teach myself making cleo mods. So I wanted to edit james227UK Squad mod (for private use !) , but I got problems. The first line of text shows and then game crash. Here's edited version of james227UK script : // This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007 {$VERSION 3.1.0027} {$CLEO .cs} //-------------MAIN--------------- thread 'SQUAD' :SQUAD_11 wait 0 if 00E1: player 0 pressed_key 10 else_jump @SQUAD_11 Model.Load(#FAM1) Model.Load(#FAM2) Model.Load(#FAM3) Model.Load(#BURRITO) Model.Load(#BAT) Model.Load(#COLT45) Model.Load(#CHROMEGUN) Model.Load(#MICRO_UZI) Model.Load(#AK47) Model.Load(#c*ntGUN) Model.Load(#ROCKETLA) Model.Load(#SPRAYCAN) Model.Load(#MOLOTOV) 0662: NOP "SQUAD" 0662: NOP "BY JAMES227UK" 0662: NOP "COPYRIGHT 2008" 0662: NOP "IF THIS MESSAGE IS REMOVED FROM THE SCRIPT AND THE SCRIPT IS POSTED ON ANOTHER WEBSITE WITHOUT CREDITS" 0662: NOP "YOU WILL BE SENTENCED TO THE MAXIMUM EXTENT" 0662: NOP "MOD STEALING.... ITS A CRIME!" 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 50.0 1.0 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 50.0 1.0 04D3: get_nearest_car_path_coords_from [email protected] [email protected] [email protected] type 2 store_to [email protected] [email protected] [email protected] 07AF: $PLAYER_GROUP = player $PLAYER_CHAR group 0630: put_actor $PLAYER_ACTOR in_group $PLAYER_GROUP as_leader 00BC: show_text_highpriority GXT 'sh*t111' time 3000 flag 1 :SQUAD_436 wait 0 if Model.Available(#FAM1) Model.Available(#FAM2) Model.Available(#FAM3) Model.Available(#BURRITO) Model.Available(#BAT) Model.Available(#COLT45) Model.Available(#CHROMEGUN) Model.Available(#MICRO_UZI) Model.Available(#AK47) Model.Available(#c*ntGUN) Model.Available(#ROCKETLA) Model.Available(#SPRAYCAN) Model.Available(#MOLOTOV) else_jump @SQUAD_436 [email protected] = Car.Create(#BURRITO, [email protected], [email protected], [email protected]) [email protected] = Marker.CreateAboveCar([email protected]) 018B: set_marker [email protected] radar_mode 2 [email protected] = Actor.Create(Special, #FAM2, [email protected], [email protected], [email protected]) 072A: put_actor [email protected] into_car [email protected] driverseat 01B2: give_actor [email protected] weapon 30 ammo 100000 // Load the weapon model before using this Actor.Health([email protected]) = 50000 01C8: [email protected] = create_actor_pedtype 23 model #FAM1 in_car [email protected] passenger_seat 0 01B2: give_actor [email protected] weapon 25 ammo 100000 // Load the weapon model before using this Actor.Health([email protected]) = 50000 01C8: [email protected] = create_actor_pedtype 23 model #FAM2 in_car [email protected] passenger_seat 1 01B2: give_actor [email protected] weapon 28 ammo 100000 // Load the weapon model before using this Actor.Health([email protected]) = 50000 01C8: [email protected] = create_actor_pedtype 23 model #FAM3 in_car [email protected] passenger_seat 2 01B2: give_actor [email protected] weapon 22 ammo 100000 // Load the weapon model before using this Actor.Health([email protected]) = 50000 [email protected] = Marker.CreateAboveActor([email protected]) Car.DriveTo([email protected], [email protected], [email protected], [email protected]) :SQUAD_723 wait 0 if 01AD: car [email protected] sphere 0 near_point [email protected] [email protected] radius 6.0 6.0 else_jump @SQUAD_723 Marker.Disable([email protected]) 05CD: AS_actor [email protected] exit_car [email protected] 05CD: AS_actor [email protected] exit_car [email protected] 05CD: AS_actor [email protected] exit_car [email protected] 05CD: AS_actor [email protected] exit_car [email protected] 0631: put_actor [email protected] in_group $PLAYER_GROUP 0631: put_actor [email protected] in_group $PLAYER_GROUP 0631: put_actor [email protected] in_group $PLAYER_GROUP 0631: put_actor [email protected] in_group $PLAYER_GROUP 00BC: show_text_highpriority GXT 'sh*t!!!' time 3000 flag 1 Car.RemoveReferences([email protected]) 0A8C: write_memory 9867536 size 4 value 0 virtual_protect 0 :SQUAD_864 wait 0 if and Actor.Dead([email protected]) Actor.Dead([email protected]) Actor.Dead([email protected]) Actor.Dead([email protected]) else_jump @SQUAD_1000 jump @SQUAD_906 :SQUAD_906 Marker.Disable([email protected]) Actor.RemoveReferences([email protected]) Actor.RemoveReferences([email protected]) Actor.RemoveReferences([email protected]) Actor.RemoveReferences([email protected]) Model.Destroy(#FAM1) Model.Destroy(#FAM2) Model.Destroy(#FAM3) Model.Destroy(#BURRITO) Model.Destroy(#BAT) Model.Destroy(#COLT45) Model.Destroy(#CHROMEGUN) Model.Destroy(#MICRO_UZI) Model.Destroy(#AK47) Model.Destroy(#c*ntGUN) Model.Destroy(#ROCKETLA) Model.Destroy(#SPRAYCAN) Model.Destroy(#MOLOTOV) jump @SQUAD_11 :SQUAD_1000 wait 0 if and 00F3: actor $PLAYER_ACTOR near_actor [email protected] radius 2.0 2.0 0 on_foot 00E1: player 0 pressed_key 9 else_jump @SQUAD_1100 00BC: show_text_highpriority GXT 'sh*t222' time 3000 flag 1 wait 0 Actor.Health($PLAYER_ACTOR) = 1500 Actor.Armour($PLAYER_ACTOR) = 1500 00BC: show_text_highpriority GXT 'sh*t333' time 1000 flag 1 jump @SQUAD_1100 :SQUAD_1100 wait 0 if Actor.Dead($PLAYER_ACTOR) else_jump @SQUAD_1127 jump @SQUAD_906 :SQUAD_1127 wait 0 if 00F3: actor $PLAYER_ACTOR near_actor [email protected] radius 2.0 2.0 0 on_foot 00E1: player 0 pressed_key 8 else_jump @SQUAD_864 01B2: give_actor $PLAYER_ACTOR weapon 5 ammo 1 // Load the weapon model before using this 01B2: give_actor $PLAYER_ACTOR weapon 22 ammo 125 // Load the weapon model before using this 01B2: give_actor $PLAYER_ACTOR weapon 25 ammo 50 // Load the weapon model before using this 01B2: give_actor $PLAYER_ACTOR weapon 28 ammo 250 // Load the weapon model before using this 01B2: give_actor $PLAYER_ACTOR weapon 30 ammo 250 // Load the weapon model before using this 01B2: give_actor $PLAYER_ACTOR weapon 33 ammo 50 // Load the weapon model before using this 01B2: give_actor $PLAYER_ACTOR weapon 35 ammo 5 // Load the weapon model before using this 01B2: give_actor $PLAYER_ACTOR weapon 41 ammo 5000 // Load the weapon model before using this jump @SQUAD_864 Edited November 28, 2008 by loczek47 Link to comment Share on other sites More sharing options...
ZAZ Posted November 28, 2008 Share Posted November 28, 2008 Hi , I was trying to teach myself making cleo mods. So I wanted to edit james227UK Squad mod (for private use !) , but I got problems. The first line of text shows and then game crash. Here's edited version of james227UK script :// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007 there are to much conditions in this check: ifModel.Available(#FAM1)Model.Available(#FAM2)Model.Available(#FAM3)Model.Available(#BURRITO)Model.Available(#BAT)Model.Available(#COLT45)Model.Available(#CHROMEGUN)Model.Available(#MICRO_UZI)Model.Available(#AK47)Model.Available(#c*ntGUN)Model.Available(#ROCKETLA)Model.Available(#SPRAYCAN)Model.Available(#MOLOTOV)else_jump @SQUAD_436 max = 9, look in sanny help CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
loczek47 Posted November 28, 2008 Author Share Posted November 28, 2008 So there's no way to fix it ? Link to comment Share on other sites More sharing options...
james227uk Posted November 28, 2008 Share Posted November 28, 2008 if andModel.Available(#FAM1)Model.Available(#FAM2)Model.Available(#FAM3)Model.Available(#BURRITO)Model.Available(#BAT)Model.Available(#COLT45)Model.Available(#CHROMEGUN)Model.Available(#MICRO_UZI)Model.Available(#AK47)jf @SQUAD_436if andModel.Available(#c*ntGUN)Model.Available(#ROCKETLA)Model.Available(#SPRAYCAN)Model.Available(#MOLOTOV)jf @SQUAD_436 Link to comment Share on other sites More sharing options...
loczek47 Posted November 28, 2008 Author Share Posted November 28, 2008 Thank you all ! But I fixed it without your help....You know what's the problem ? I was trying to change from Patriot to Burrito , but when I changed [email protected] = Car.Create(#PATRIOT, [email protected], [email protected], [email protected]) to [email protected] = Car.Create(#BURRITO, [email protected], [email protected], [email protected]) my game crashed. I changed the models lines and Car.Create lines from Burrito to default , Patriot. Now it works. 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