Sharppp Posted January 4, 2017 Share Posted January 4, 2017 {$CLEO .cm}gosub @Missionif wasted_or_bustedthen gosub @Mission_Failedendgosub @Mission_Failedend_thread:Missionthread 'LKSCHII'$409 = 1// Player Initselect_interior 007B4: set_player $PLAYER_CHAR gang_recruitment_enabled 0fade 0 1000gosub @FadingModel.Load(#FAM2)Model.Load(#FAM1)Model.Load(#FAM3)Model.Load(#BALLAS1)Model.Load(#BALLAS2)Model.Load(#BALLAS3)Model.Load(#GREENWOO)Model.Load(#TAHOMA)Model.Load(#MAJESTIC)Model.Load(#CHROMEGUN)Model.Load(#TEC9)Model.Load(#COLT45)038B: load_requested_models0395: clear_area 1 at 2483.3811 -1656.1223 13.321 radius 3.000A5: [email protected] = create_car #GREENWOO at 2483.3811 -1656.1223 13.3210175: set_car [email protected] Z_angle_to 88.89970229: set_car [email protected] primary_color_to 10 secondary_color_to 101C8: [email protected] = create_actor_pedtype 24 model #FAM1 in_car [email protected] passenger_seat 00223: set_actor [email protected] health_to 20001B2: give_actor [email protected] weapon 25 ammo 60000 // Load the weapon model before using this09B5: set_actor [email protected] signal_after_kill 0081A: set_actor [email protected] weapon_skill_to 20526: set_actor [email protected] stay_in_car_when_jacked 1039E: set_actor [email protected] locked 1 while_in_car02E2: set_actor [email protected] weapon_accuracy_to 4007DD: set_actor [email protected] attack_rate 100 // previously known as temper_to07CB: set_actor [email protected] supporting_fire 101C8: [email protected] = create_actor_pedtype 24 model #FAM2 in_car [email protected] passenger_seat 10223: set_actor [email protected] health_to 20001B2: give_actor [email protected] weapon 22 ammo 60000 // Load the weapon model before using this09B5: set_actor [email protected] signal_after_kill 0081A: set_actor [email protected] weapon_skill_to 20526: set_actor [email protected] stay_in_car_when_jacked 1039E: set_actor [email protected] locked 1 while_in_car02E2: set_actor [email protected] weapon_accuracy_to 4007CB: set_actor [email protected] supporting_fire 101C8: [email protected] = create_actor_pedtype 24 model #FAM3 in_car [email protected] passenger_seat 20223: set_actor [email protected] health_to 20001B2: give_actor [email protected] weapon 32 ammo 60000 // Load the weapon model before using this09B5: set_actor [email protected] signal_after_kill 0081A: set_actor [email protected] weapon_skill_to 20526: set_actor [email protected] stay_in_car_when_jacked 1039E: set_actor [email protected] locked 1 while_in_car02E2: set_actor [email protected] weapon_accuracy_to 4007DD: set_actor [email protected] attack_rate 65 // previously known as temper_to07CB: set_actor [email protected] supporting_fire 101B9: set_actor [email protected] armed_weapon_to 001B9: set_actor [email protected] armed_weapon_to 001B9: set_actor [email protected] armed_weapon_to 000BE: text_clear_allfade 1 1000gosub @Fading02A3: enable_widescreen 001B4: set_player $PLAYER_CHAR can_move 1// [email protected] ========> CHECKPOINT ![email protected] = 0while truewait 0 if or 0118: actor [email protected] dead 0118: actor [email protected] dead 0118: actor [email protected] dead then 00BC: show_text_highpriority GXT 'LKS_001' time 5000 flag 1 jump @Mission_Failed end if 0119: car [email protected] wrecked then 00BC: show_text_highpriority GXT 'LKS_002' time 5000 flag 1 jump @Mission_Failed end if 00DB: actor $PLAYER_ACTOR in_car [email protected] then if 075C: marker [email protected] enabled then 0164: disable_marker [email protected] 0164: disable_marker [email protected] end else if 875C: Not marker [email protected] enabled then 0186: [email protected] = create_marker_above_car [email protected] 07E0: set_marker [email protected] type_to 1 018A: [email protected] = create_checkpoint_at 2344.8789 -1550.5411 23.8354 end end if and [email protected] == 0 00DB: actor $PLAYER_ACTOR in_car [email protected] then [email protected] += 1 00BC: show_text_highpriority GXT 'LKS_004' time 5000 flag 1 end if and [email protected] == 1 80DB: not actor $PLAYER_ACTOR in_car [email protected] then [email protected] -= 1 00BC: show_text_highpriority GXT 'LKS_001' time 5000 flag 1 end if and 00DB: actor $PLAYER_ACTOR in_car [email protected] 0100: actor $PLAYER_ACTOR in_sphere 1793.068 -1904.254 12.3989 radius 3.0 3.0 3.0 sphere 1 in_car then 04BA: set_car [email protected] speed_to 0.0 break endend// Clear Area ===> Battlefield0395: clear_area 1 at 681.8004 -474.1063 15.5363 radius 10.001E8: create_forbidden_for_cars_cube_cornerA 2333.6233 -1573.916 24.0059 cornerB 2517.4536 -1378.9497 28.5383022B: create_forbidden_for_peds_cube_cornerA 2333.6233 -1573.916 24.0059 cornerB 2517.4536 -1378.9497 28.538300A5: [email protected] = create_car #PONY at 0.0 0.0 0.0:Fadingif 816B: not fadingjf @Fadingreturn:Mission_Failed00BA: show_text_styled GXT "M_FAIL" time 5000 style 1return:Mission_Cleanupmission_cleanup ====================== I know it's not finish 'cause I want to know if it's working before I put much effort into it. Just a newbie in Sanny Builder. I don't know what's wrong with it and always get an error. Can some veterans tell me what needs to be done (scripts). Please! Link to comment Share on other sites More sharing options...
ZAZ Posted January 4, 2017 Share Posted January 4, 2017 you already got answer here and from me, no need to open this topic if you can't understand how to fix, then forget it, it's too complicate for newbies, read tutorials and learn coding first CLEO Script Tutorial CLEO_Script_Tut Learn GTA3script in Y minutes This is not valid: GOSUB @FADING:FADINGIF 816B: NOT fadingJF @FADINGA GOSUB is not needed since your script reaches that part of the code anyways and you need a WAIT in the loop. and you need a WAIT in the loopand you need a WAIT in the loop and you need a WAIT in the loop and you need a WAIT in the loop and you need a WAIT in the loop and you need a WAIT in the loop and you need a WAIT in the loop and you need a WAIT in the loop and you need a WAIT in the loop and you need a WAIT in the loop and you need a WAIT in the loop and you need a WAIT in the loop and you need a WAIT in the loop and you need a WAIT in the loop and you need a WAIT in the loop and you need a WAIT in the loop The Basics // A very important command is WAIT (http://www.gtamodding.com/wiki/0001).// The game is single-threaded, and as such it has to stop updating the game to process scripts, including this one.// To signal the game we're done with the script on this tick, we should use WAIT.WAIT 0 // stops execution and returns on the next tick.WAIT 1000 // stops execution for at least 1000ms. CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Recommended Posts