Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Summer Special
      2. The Diamond Casino Heist
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Frontier Pursuits
      2. Find Lobbies & Outlaws
      3. Help & Support
    3. Crews

    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. Grand Theft Auto Series

    2. GTA VI

      1. St. Andrews Cathedral
    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
    6. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
    7. GTA III

      1. Guides & Strategies
      2. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    3. Gangs

    1. Announcements

    2. Support

    3. Suggestions

Sign in to follow this  
AB033

Making my own mission

Recommended Posts

AB033

Hello,

I'm another Dummy and I need your help. First off, thank you all!

Now, I said I have problem with making mission (in the tittle). I learned how to use a lot tools, but there is something wrong. I copy the code of mission (by Rockstar Style) written by Dutchy (thank you a lot, Dutchy) and the mission works. It's "in fully" OK. But when I edit some coords (any coords, cars, actors, anything) it doesn't work. I compile it and copy (of course) but when I start the mission the game crashes.

I'm invalid in these things ( biggrin.gif ), so I need help. It doesn't matter when will somebody answer, it's just important to answer. But please help.

 

Good day to y'a all! smile.gif

Share this post


Link to post
Share on other sites
Dutchy3010

We can't help you, unless you post your code. Use the code tags (

) and post your code in this topic. Else we don't have a clue about what you are doing. 

Share this post


Link to post
Share on other sites
AB033

OK, here it is:

DEFINE MISSIONS 2DEFINE MISSION 0 AT @INITIALDEFINE MISSION 1 AT @TUT_MISSION_1DEFINE EXTERNAL_SCRIPTS 0 // Use -1 in order not to compile AAA script//DEFINE SCRIPT {NAME}  AT {LABEL} @DEFINE UNKNOWN_EMPTY_SEGMENT 0DEFINE UNKNOWN_THREADS_MEMORY 0{$VERSION 3.0.0000}var$PLAYER_CHAR: Playerend // var 03A4: name_thread 'MAIN' 01F0: set_max_wanted_level_to 6 0111: toggle_wasted_busted_check 0 00C0: set_current_time_hours_to 8 minutes_to 0 04E4: unknown_refresh_game_renderer_at 2488.56 -1666.84 03CB: set_rendering_origin_at 2488.56 -1666.84 13.38 0053: $PLAYER_CHAR = create_player #NULL at 2488.56 -1666.84 13.38 01F5: $PLAYER_ACTOR = create_player_actor $PLAYER_CHAR 07AF: $PLAYER_GROUP = player $PLAYER_CHAR group 0373: set_camera_directly_behind_player 01B6: set_weather 0 0001: wait 0 ms 087B: set_player $PLAYER_CHAR clothes_texture "PLAYER_FACE" model "HEAD" body_part 1 087B: set_player $PLAYER_CHAR clothes_texture "JEANSDENIM" model "JEANS" body_part 2 087B: set_player $PLAYER_CHAR clothes_texture "SNEAKERBINCBLK" model "SNEAKER" body_part 3 087B: set_player $PLAYER_CHAR clothes_texture "VEST" model "VEST" body_part 0 070D: rebuild_player $PLAYER_CHAR 01B4: toggle_player $PLAYER_CHAR can_move 1 016A: fade 1 time 0 04BB: select_interior 0 0629: change_integer_stat 181 to 4 016C: restart_if_wasted_at 2027.77 -1420.52 15.99 angle 137.0 town_number 0 016D: restart_if_busted_at 1550.68 -1675.49 14.51 angle 90.0 town_number 0 0180: set_on_mission_flag_to $ONMISSION // Note: your missions have to use the variable defined here 0004: $DEFAULT_WAIT_TIME = 25003E6: remove_text_box 0417: start_mission 0  // Initial wait 0// put your create_thread commands here00D7: create_thread @TUT_MISSIONS_SNIFFER :MAIN_LOOP0001: wait $DEFAULT_WAIT_TIME ms0002: jump @MAIN_LOOP // put your mods (threads) here:TUT_MISSION_SNIFFERthread "TUT SNIFF"$MARKER_SWEET_HOUSE = Marker.CreateIconAndSphere(42,$x_SWEET_HOUSE, $Y_SWEET_HOUSE, $Z_SWEET_HOUSE)repeatwait $DEFAULT_WAIT_TIME  if and   player.Defined($PLAYER_CHAR)   $ONMISSION == 0  then   if and     00FF:   actor $PLAYER_ACTOR sphere 0 in_sphere $X_SWEET_HOUSE $Y_SWEET_HOUSE $Z_SWEET_HOUSE radius 1.0 1.0 2.0 on_foot      Player.Controllable($PLAYER_CHAR)     $TUT_MISSIONS_PASSED == 0   then     $ONMISSION = 1     00BA: show_text_styled GXT 'INTRO_1' time 1000 style 2  // Big Smoke    start_mission 1     end    end until $TUT_MISSIONS_PASSED == 1marker.Disable($MARKER_SWEET_HOUSE)end_thread:INITIAL$TUT_MISSIONS_PASSED = 0$ONMISSION = 0$X_SWEET_HOUSE = 2515.07 $Y_SWEET_HOUSE = -1673.98 $Z_SWEET_HOUSE = 12.71 0629: change_integer_stat 225 to 999 end_thread//-------------Mission 1---------------// Mission wrapper:TUT_MISSION_1thread 'TUT 1'  gosub @TUT_MISSION_1_MAIN  if wasted_or_busted  then    gosub @TUT_MISSION_1_FAIL  end gosub @TUT_MISSION_1_CLEANUP end_thread//-------------------------------------:TUT_MISSION_1_MAIN//Load modelsmodel.Load(#DESERT_EAGLE)model.lOAD(#BMYBU)model.Load(#BFYST)model.Load(#TURISMO)038B: load_requested models:TUT_MISSION_1_LOADwait 0 msif andmodel.available(#BMYBU)model.Available(#TURISMO)004D:jump_if_false @TUT_MISSION_1_LOAD01B2: give_actor $PLAYER_ACTOR weapon 31 ammo 100 // Load the weapon model before using this01B9: seta_actor $PLAYER_ACTOR armed_weapon_to 3480674: set_car_model #TURISMO numberplate "PATRICK_"$car_num = car.Create(#TURISMO),2487.56, -1666.84, 13.38)$victim = Actor.Create(CIVMALE,BMF2169,358, -1805,401, 13,37098$innocent = Actor.Create(CIVMALE, #BMYBU, 2162,267, -1806,321, 13,37188repeatwait 0msif actor.Dead($innocent)thenjump @TUT_MISSION_1_FAILenduntil actor.Dead($victim):TUT_MISSION_1_PASSED0394: play_music 1$TUT_MISSIONS_PASSED +=1Player.Money(#PLAYER_CHAR)+= 15001E3: show_text_1number_styled GXT 'M_PASS' number 150 time 150 style 1 //~r~MISSION PASSED! ~n~~w~$~1~return//-------------------------------------:TUT_MISSION_1_FAIL00BA: show_text_styled GXT 'M_FAIL' time 5000 style 1  // ~r~MISSION FAILED!0555: remove_weapon 348 from_actor $PLAYER_ACTORreturn//-------------------------------------:TUT_MISSION_1_CLEANUP$ONMISSION = 0Marker.Disable($victim_marker)010D: set_player $PLAYER_CHAR wanted_level_to 0 model.Destroy(#BFYST)model.Destroy(#BMBYBU)model.Destroy(#M4)mission_cleanup return  

 

 

See? This is your code and I changed some coords and models. It says:"Not enough actual parameters. Expected 6 params."

What is actually "paragram"? How do I can solve this?

Thanks for help!

Share this post


Link to post
Share on other sites
Dutchy3010

 

$victim = Actor.Create(CIVMALE,BMF2169,358, -1805,401, 13,37098$innocent = Actor.Create(CIVMALE, #BMYBU, 2162,267, -1806,321, 13,37188

 

There you forgot the bracket. So it has to be (CIVMALE,BMF2169,358, -1805,401, 13,37098)

 

 

wait 0ms

 

There has to be a space between 0 and ms.

 

 

00D7: create_thread @TUT_MISSIONS_SNIFFER

 

That has to be MISSION, not MISSIONS.

Share this post


Link to post
Share on other sites
AB033

OK, never mind. I deleted this code and I just copied new (yours).

Here, I changed car model TAMPA TO TURISMO and I didn't change the coords and works great.

 

Old coords and Turismo:

 

 

$CAR_NUM = create_car #TURISMO at 2488.56 -1666.84 13.38

 

 

 

Now, here are the new coords and same (of course same) Turismo:

 

 

 

$CAR_NUM = create_car #TURISMO at 2499,351 -1682,029 13,08526

 

 

As you can see I just replaced the coords, I didn't change space or anything but I couldn't compile:

 

"Not enough actual parameters. Expected 5 params."

 

I don't know what is problem. I wrote right and everything but it just doesn't want to accept my coords.

 

Please help.

 

Thanks!

Edited by AB033

Share this post


Link to post
Share on other sites
james227uk

Simple.

Replace the commas with full stops

 

 

$CAR_NUM = create_car #TURISMO at 2499.351 -1682.029 13.08526

 

Share this post


Link to post
Share on other sites
Dutchy3010

That is a very common error, because when you copy the coordinates from the coords tool, it will be with comma's. I advise you to look in the SCM Coding FAQ next time, before you ask a question on the forum. wink.gif

Share this post


Link to post
Share on other sites
james227uk

Copying coords from the coords manager is a waste of time confused.gif . Right click the sanny builder page, hover over insert and click player coords or player angle. It automatically adds commas if neccesary

Edited by james227uk

Share this post


Link to post
Share on other sites
Dutchy3010

Lol, I'm always pressing "Shift + Ctrl + C" or "Shift + Ctrl + E". That's even faster. biggrin.gif

Share this post


Link to post
Share on other sites
AB033

WOW!

THANKS! THANKS! THANKS!

YOU DUTCHY ARE A CODING GENIUS! YOU TOO JAMES227UK!

THANKS! smile.gifsmile.gifsmile.gif

Edited by AB033

Share this post


Link to post
Share on other sites
AB033

OK. Now, the same mission code and I added a marker on the turismo (to make the player to get in it) and I made a sphere:

 

 

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007DEFINE OBJECTS 1DEFINE OBJECT SANNY BUILDER 3.04      DEFINE MISSIONS 2DEFINE MISSION 0 AT @NONAME_1          // Initial 1DEFINE MISSION 1 AT @TUT_1             // Initial 2DEFINE EXTERNAL_SCRIPTS 0 // Use -1 in order not to compile AAA scriptDEFINE UNKNOWN_EMPTY_SEGMENT 0DEFINE UNKNOWN_THREADS_MEMORY 0{$VERSION 3.1.0027}//-------------MAIN---------------03A4: name_thread 'MAIN' 01F0: set_max_wanted_level_to 6 0111: set_wasted_busted_check 0 00C0: set_current_time_hours_to 8 minutes_to 0 04E4: unknown_refresh_game_renderer_at 2488.56 -1666.84 03CB: set_rendering_origin_at 2488.56 -1666.84 13.38 0053: $PLAYER_CHAR = create_player #NULL at 2488.56 -1666.84 13.38 01F5: $PLAYER_ACTOR = get_player_actor $PLAYER_CHAR 07AF: $PLAYER_GROUP = player $PLAYER_CHAR group 0373: set_camera_directly_behind_player 01B6: set_weather 0 0001: wait 0 ms 087B: set_player $PLAYER_CHAR clothes_texture "PLAYER_FACE" model "HEAD" body_part 1 087B: set_player $PLAYER_CHAR clothes_texture "JEANSDENIM" model "JEANS" body_part 2 087B: set_player $PLAYER_CHAR clothes_texture "SNEAKERBINCBLK" model "SNEAKER" body_part 3 087B: set_player $PLAYER_CHAR clothes_texture "VEST" model "VEST" body_part 0 070D: rebuild_player $PLAYER_CHAR 01B4: set_player $PLAYER_CHAR can_move 1 016A: fade 1 time 0 04BB: select_interior 0 0629: change_integer_stat 181 to 4 016C: restart_if_wasted_at 2027.77 -1420.52 15.99 angle 137.0 town_number 0 016D: restart_if_busted_at 1550.68 -1675.49 14.51 angle 90.0 town_number 0 0180: set_on_mission_flag_to $ONMISSION // Note: your missions have to use the variable defined here 0004: $DEFAULT_WAIT_TIME = 250 03E6: remove_text_box 0417: start_mission 0  // Initial 10001: wait 0 ms 00D7: create_thread @TUT_SNIFF // without extra params :MAIN_3120001: wait $DEFAULT_WAIT_TIME ms 0002: jump @MAIN_312 :TUT_SNIFF03A4: name_thread "TUT_SNIFF" 02A7: $MARKER_SWEET_HOUSE = create_icon_marker_and_sphere 42 at $X_SWEET_HOUSE $Y_SWEET_HOUSE $Z_SWEET_HOUSE :TUT_SNIFF_290001: wait $DEFAULT_WAIT_TIME ms 00D6: if and0256:   player $PLAYER_CHAR defined 0038:   $ONMISSION == 0 004D: jump_if_false @TUT_SNIFF_138 00D6: if and00FF:   actor $PLAYER_ACTOR sphere 0 in_sphere $X_SWEET_HOUSE $Y_SWEET_HOUSE $Z_SWEET_HOUSE radius 1.0 1.0 2.0 on_foot 03EE:   player $PLAYER_CHAR controllable 0038:   $TUT_MISSIONS_PASSED == 0 004D: jump_if_false @TUT_SNIFF_138 0004: $ONMISSION = 1 00BA: show_text_styled GXT 'INTRO_1' time 1000 style 2  // Big Smoke0417: start_mission 1  // Initial 2:TUT_SNIFF_1380038:   $TUT_MISSIONS_PASSED == 1 004D: jump_if_false @TUT_SNIFF_29 0164: disable_marker $MARKER_SWEET_HOUSE 004E: end_thread //-------------Mission 0---------------// Originally: Initial 1:NONAME_10004: $TUT_MISSIONS_PASSED = 0 0004: $ONMISSION = 0 0005: $X_SWEET_HOUSE = 2515.07 0005: $Y_SWEET_HOUSE = -1673.98 0005: $Z_SWEET_HOUSE = 12.71 0629: change_integer_stat 225 to 999 004E: end_thread //-------------Mission 1---------------// Originally: Initial 2:TUT_103A4: name_thread 'TUT 1' 0050: gosub @TUT_1_47 00D6: if 0112:   wasted_or_busted // mission only 004D: jump_if_false @TUT_1_38 0050: gosub @TUT_1_369 :TUT_1_380050: gosub @TUT_1_394 004E: end_thread :TUT_1_470247: load_model #M4 0247: load_model #BFYST 0247: load_model #BMYST 0247: load_model #TURISMO 038B: load_requested_models :TUT_1_670001: wait 0 ms 00D6: if and0248:   model #M4 available 0248:   model #BMYST available 0248:   model #BFYST available 0248:   model #TURISMO available 004D: jump_if_false @TUT_1_67 01B2: give_actor $PLAYER_ACTOR weapon 31 ammo 10000 // Load the weapon model before using this 01B9: set_actor $PLAYER_ACTOR armed_weapon_to 31 0674: set_car_model #TURISMO numberplate "CJ_" 00A5: $CAR_NUM = create_car #TURISMO at 2500.396 -1682.446 13.3702 0186: $M1 = create_marker_above_car $TURISMO :TUT_1_1580001: wait 0 ms 00DB:   actor $PLAYER_ACTOR in_car $TURISMO 004D: jump_if_false @TUT_1_158 0164: disable_marker $M1 0004: $COORDINATE_X = 2113.038 0004: $COORDINATE_Y = -1762.88 0004: $COORDINATE_Z = 13.39783 02A7: $COORDINATE = create_icon_marker_and_sphere 0 at $COORDINATE_X $COORDINATE_Y $COORDINATE_Z 0164: disable_marker $COORDINATE 004E: end_thread 009A: $VICTIM = create_actor_pedtype 5 model #BFYST at 2110.577 -1776.532 13.39116009A: $INNOCENT = create_actor_pedtype 4 model #BMYST at 2114.948 -1777.753 3.390560187: $VICTIM_MARKER = create_marker_above_actor $VICTIM :TUT_1_2910001: wait 0 ms 00D6: if 0118:   actor $INNOCENT dead 004D: jump_if_false @TUT_1_318 0002: jump @TUT_1_369 :TUT_1_3180118:   actor $VICTIM dead 004D: jump_if_false @TUT_1_291 0394: play_music 1 0008: $TUT_MISSIONS_PASSED += 1 0109: player $PLAYER_CHAR money += 100 01E3: show_text_1number_styled GXT 'M_PASS' number 10000 time 5000 style 1  // MISSION PASSED!~n~~w~$~1~0051: return :TUT_1_36900BA: show_text_styled GXT 'M_FAIL' time 5000 style 1  // ~r~MISSION FAILED!0555: remove_weapon 31 from_actor $PLAYER_ACTOR 0051: return :TUT_1_3940004: $ONMISSION = 0 0164: disable_marker $VICTIM_MARKER 010D: set_player $PLAYER_CHAR wanted_level_to 0 0249: release_model #BFYST 0249: release_model #BMYST 0249: release_model #M4 00D8: mission_cleanup 0051: return 

 

 

Problem is: Game crashes when I start the mission.

Oh, and there is and a message: "Couldn't write the IMG file"

 

Please help again (just IF you want).

I hope I'm not boring.

Edited by AB033

Share this post


Link to post
Share on other sites
Dutchy3010

Your problem is, that you want to set a marker above a car that doesn't exist:

 

0186: $M1 = create_marker_above_car $TURISMO

 

 

00DB:   actor $PLAYER_ACTOR in_car $TURISMO

 

You defined the car with the variable "$CAR_NUM":

 

00A5: $CAR_NUM = create_car #TURISMO at 2500.396 -1682.446 13.3702

 

Because the game can't find a car with the name "$TURISMO", it will crash.

 

"Couldn't write the IMG file" > That is because you are running GTA San Andreas while you are editing the main.scm. That is why I recommend to use MPACKS, you can find a tutorial about it in the Mission Coding for Dummies tutorial.

 

Share this post


Link to post
Share on other sites
AB033

OK, I understood the problem: "Couldn't edit SCM file"

 

Now, what means "car doesn't exists"? Do I have to change this variable: "CAR_NUM" or to add something other to make the car exists?

 

 

 

Share this post


Link to post
Share on other sites
Dutchy3010

 

0186: $M1 = create_marker_above_car $TURISMO00DB:   actor $PLAYER_ACTOR in_car $TURISMO

 

You have to change the opcodes above into:

 

0186: $M1 = create_marker_above_car $CAR_NUM00DB:   actor $PLAYER_ACTOR in_car $CAR_NUM

 

Share this post


Link to post
Share on other sites
AB033

No dilemma, you are a genuis.

Thanks, I don't how to thank you. THANKS!

Share this post


Link to post
Share on other sites
AB033

New problem. Now game isn't crashing and it's okay. At the start of the mission I made a player to get in the car and to disable marker above when player is in the car. But now problem is Icon and Sphere. In the code I tried everything and looked on forum but I didn't solve the problem. The Icon and Sphere isn't appearing at the map. Can you find a mistake here?

 

Here is the code:

 

 

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007DEFINE OBJECTS 1DEFINE OBJECT SANNY BUILDER 3.04      DEFINE MISSIONS 2DEFINE MISSION 0 AT @NONAME_1          // Initial 1DEFINE MISSION 1 AT @TUT_1             // Initial 2DEFINE EXTERNAL_SCRIPTS 0 // Use -1 in order not to compile AAA scriptDEFINE UNKNOWN_EMPTY_SEGMENT 0DEFINE UNKNOWN_THREADS_MEMORY 0{$VERSION 3.1.0027}//-------------MAIN---------------03A4: name_thread 'MAIN' 01F0: set_max_wanted_level_to 6 0111: set_wasted_busted_check 0 00C0: set_current_time_hours_to 8 minutes_to 0 04E4: unknown_refresh_game_renderer_at 2488.56 -1666.84 03CB: set_rendering_origin_at 2488.56 -1666.84 13.38 0053: $PLAYER_CHAR = create_player #NULL at 2488.56 -1666.84 13.38 01F5: $PLAYER_ACTOR = get_player_actor $PLAYER_CHAR 07AF: $PLAYER_GROUP = player $PLAYER_CHAR group 0373: set_camera_directly_behind_player 01B6: set_weather 0 0001: wait 0 ms 087B: set_player $PLAYER_CHAR clothes_texture "PLAYER_FACE" model "HEAD" body_part 1 087B: set_player $PLAYER_CHAR clothes_texture "JEANSDENIM" model "JEANS" body_part 2 087B: set_player $PLAYER_CHAR clothes_texture "SNEAKERBINCBLK" model "SNEAKER" body_part 3 087B: set_player $PLAYER_CHAR clothes_texture "VEST" model "VEST" body_part 0 070D: rebuild_player $PLAYER_CHAR 01B4: set_player $PLAYER_CHAR can_move 1 016A: fade 1 time 0 04BB: select_interior 0 0629: change_integer_stat 181 to 4 016C: restart_if_wasted_at 2027.77 -1420.52 15.99 angle 137.0 town_number 0 016D: restart_if_busted_at 1550.68 -1675.49 14.51 angle 90.0 town_number 0 0180: set_on_mission_flag_to $ONMISSION // Note: your missions have to use the variable defined here 0004: $DEFAULT_WAIT_TIME = 250 03E6: remove_text_box 0417: start_mission 0  // Initial 10001: wait 0 ms 00D7: create_thread @TUT_SNIFF // without extra params :MAIN_3120001: wait $DEFAULT_WAIT_TIME ms 0002: jump @MAIN_312 :TUT_SNIFF03A4: name_thread "TUT_SNIFF" 02A7: $MARKER_SWEET_HOUSE = create_icon_marker_and_sphere 42 at $X_SWEET_HOUSE $Y_SWEET_HOUSE $Z_SWEET_HOUSE :TUT_SNIFF_290001: wait $DEFAULT_WAIT_TIME ms 00D6: if and0256:   player $PLAYER_CHAR defined 0038:   $ONMISSION == 0 004D: jump_if_false @TUT_SNIFF_138 00D6: if and00FF:   actor $PLAYER_ACTOR sphere 0 in_sphere $X_SWEET_HOUSE $Y_SWEET_HOUSE $Z_SWEET_HOUSE radius 1.0 1.0 2.0 on_foot 03EE:   player $PLAYER_CHAR controllable 0038:   $TUT_MISSIONS_PASSED == 0 004D: jump_if_false @TUT_SNIFF_138 0004: $ONMISSION = 1 00BA: show_text_styled GXT 'INTRO_1' time 1000 style 2  // Big Smoke0417: start_mission 1  // Initial 2:TUT_SNIFF_1380038:   $TUT_MISSIONS_PASSED == 1 004D: jump_if_false @TUT_SNIFF_29 0164: disable_marker $MARKER_SWEET_HOUSE 004E: end_thread //-------------Mission 0---------------// Originally: Initial 1:NONAME_10004: $TUT_MISSIONS_PASSED = 0 0004: $ONMISSION = 0 0005: $X_SWEET_HOUSE = 2515.07 0005: $Y_SWEET_HOUSE = -1673.98 0005: $Z_SWEET_HOUSE = 12.71 0629: change_integer_stat 225 to 999 004E: end_thread //-------------Mission 1---------------// Originally: Initial 2:TUT_103A4: name_thread 'TUT 1' 0050: gosub @TUT_1_47 00D6: if 0112:   wasted_or_busted // mission only 004D: jump_if_false @TUT_1_38 0050: gosub @TUT_1_406 :TUT_1_380050: gosub @TUT_1_431 004E: end_thread :TUT_1_470247: load_model #M4 0247: load_model #BFYST 0247: load_model #BMYST 0247: load_model #TURISMO 038B: load_requested_models :TUT_1_670001: wait 0 ms 00D6: if and0248:   model #M4 available 0248:   model #BMYST available 0248:   model #BFYST available 0248:   model #TURISMO available 004D: jump_if_false @TUT_1_67 01B2: give_actor $PLAYER_ACTOR weapon 31 ammo 10000 // Load the weapon model before using this 01B9: set_actor $PLAYER_ACTOR armed_weapon_to 31 0674: set_car_model #TURISMO numberplate "CJ_" 00A5: $CAR_NUM = create_car #TURISMO at 2500.396 -1682.446 13.3702 0186: $M2 = create_marker_above_car $CAR_NUM 00DB:   actor $PLAYER_ACTOR in_car $CAR_NUM :TUT_1_1660001: wait 0 ms 00DB:   actor $PLAYER_ACTOR in_car $CAR_NUM 004D: jump_if_false @TUT_1_166 0164: disable_marker $M2 0249: release_model #TURISMO 004E: end_thread 0570: $ICON_EN_SPHERE = create_asset_radar_marker_with_icon 36 at 2401.464 -1725.388 13.5735 0004: $COORDINATE_X = 2401.464 0004: $COORDINATE_Y = -1725.388 0004: $COORDINATE_Z = 13.5735 02A7: $COORDINATE = create_icon_marker_and_sphere 0 at $COORDINATE_X $COORDINATE_Y $COORDINATE_Z 0164: disable_marker $COORDINAAT 004E: end_thread 009A: $VICTIM = create_actor_pedtype 5 model #BFYST at 2110.577 -1776.532 13.39116 009A: $INNOCENT = create_actor_pedtype 4 model #BMYST at 2114.948 -1777.753 3.39056 0187: $VICTIM_MARKER = create_marker_above_actor $VICTIM :TUT_1_3280001: wait 0 ms 00D6: if 0118:   actor $INNOCENT dead 004D: jump_if_false @TUT_1_355 0002: jump @TUT_1_406 :TUT_1_3550118:   actor $VICTIM dead 004D: jump_if_false @TUT_1_328 0394: play_music 1 0008: $TUT_MISSIONS_PASSED += 1 0109: player $PLAYER_CHAR money += 100 01E3: show_text_1number_styled GXT 'M_PASS' number 10000 time 5000 style 1  // MISSION PASSED!~n~~w~$~1~0051: return :TUT_1_40600BA: show_text_styled GXT 'M_FAIL' time 5000 style 1  // ~r~MISSION FAILED!0555: remove_weapon 31 from_actor $PLAYER_ACTOR 0051: return :TUT_1_4310004: $ONMISSION = 0 0164: disable_marker $VICTIM_MARKER 010D: set_player $PLAYER_CHAR wanted_level_to 0 0249: release_model #BFYST 0249: release_model #BMYST 0249: release_model #M4 0249: release_model #TURISMO 00D8: mission_cleanup 0051: return 

 

Share this post


Link to post
Share on other sites
james227uk

If someone can help him great, because it's happened to me. The marker appears after the mission. I think it's related to the marker opcode you used though. Look through the opcode search for different ones.

Share this post


Link to post
Share on other sites
Dutchy3010

 

02A7: $MARKER_SWEET_HOUSE = create_icon_marker_and_sphere 42 at $X_SWEET_HOUSE $Y_SWEET_HOUSE $Z_SWEET_HOUSE 

 

This opcode doesn't work in a mission. It is used for markers/icons to start a mission. I thought the following opcodes will show:

 

02A8: $439 = create_marker $ICON_CJ at 2596.589 2758.158 22.86203BC: [email protected] = create_sphere_at 2596.589 2758.158 22.862 radius 1.0 

 

Share this post


Link to post
Share on other sites
AB033

So, I take the mission and get in a car. That is OK.

But, when I get into a car it should be icon on the map but there is no it. I tried this your code, but I think you didn't understand. The problem ain't a icon and sphere for taking a mission. Problem is, there is no an icon and sphere when I get into a car (on a mission )

So, this part:

 

 

0674: set_car_model #TURISMO numberplate "CJ_" 00A5: $CAR_NUM = create_car #TURISMO at 2500.396 -1682.446 13.3702 0186: $M2 = create_marker_above_car $CAR_NUM 00DB:   actor $PLAYER_ACTOR in_car $CAR_NUM :TUT_1_1660001: wait 0 ms 00DB:   actor $PLAYER_ACTOR in_car $CAR_NUM 004D: jump_if_false @TUT_1_166 0164: disable_marker $M2 0249: release_model $CAR_NUM 004E: end_thread 02A8: $ICON_CJ = create_marker $ICON_CJ at 2596.589 2758.158 22.862 03BC: [email protected] = create_sphere_at 2596.589 2758.158 22.862 radius 1.0 004E: end_thread 009A: $VICTIM = create_actor_pedtype 5 model #BFYST at 2110.577 -1776.532 13.39116 009A: $INNOCENT = create_actor_pedtype 4 model #BMYST at 2114.948 -1777.753 3.39056 0187: $VICTIM_MARKER = create_marker_above_actor $VICTIM

 

 

Can you just write an icon and sphere which will work? (because you know better than me)

 

 

Edited by AB033

Share this post


Link to post
Share on other sites
Dutchy3010

Why do you use the "004E: end_thread"? That's why the code doesn't even read your code about the icons/spheres. Delete both "004E: end_thread" in the code above, and try again. wink.gif

Share this post


Link to post
Share on other sites
AB033

nothing more to say...just genius.

mercie_blink.gif

Thanks, Dutchy3010!

Share this post


Link to post
Share on other sites
AB033

OK, now new problems and new questions.

Here is the code:

 

hread 'MAIN' fade 0 0 042C: set_total_missions_to 0 030D: set_max_progress 0 01F0: set_max_wanted_level_to 6 set_wb_check_to 0 00C0: set_current_time_hours_to 10 minutes_to 0 $7 = 0.0 $6 = 0.0 $5 = 30.0 04E4: unknown_refresh_game_renderer_at $7 $6 Camera.SetAtPos($7, $6, $5)062A: change_float_stat 165 to 999.0 062A: change_float_stat 23 to 999.0 062A: change_float_stat 21 to 0.0 062A: change_float_stat 163 to 999.0 062A: change_float_stat 160 to 999.0 062A: change_float_stat 229 to 999.0 062A: change_float_stat 223 to 999.0 062A: change_float_stat 230 to 999.0 0629: change_integer_stat 181 to 4 0629: change_integer_stat 68 to 0 $PLAYER_CHAR = Player.Create(#NULL, $7, $6, $5)07AF: $PLAYER_GROUP = player $PLAYER_CHAR group $PLAYER_ACTOR = Actor.EmulateFromPlayer($PLAYER_CHAR)Camera.SetBehindPlayerActor.Angle($PLAYER_ACTOR) = 262.0set_weather 1 Player.SetClothes($PLAYER_CHAR, "BBALLJACKRSTAR", "BBJACK", Torso)Player.SetClothes($PLAYER_CHAR, "JEANSDENIM", "JEANS", Legs)Player.SetClothes($PLAYER_CHAR, "SNEAKERBINCBLK", "SNEAKER", Shoes)Player.SetClothes($PLAYER_CHAR, "PLAYER_FACE", "HEAD", Head)Player.Build($PLAYER_CHAR)select_interior 0 Player.CanMove($PLAYER_CHAR) = True01B7: release_weather 016C: restart_if_wasted_at $7 $6 $5 angle 0.0 town_number 0 Model.Load(#CHEETAH):MAIN_383wait 0 if   Model.Available(#CHEETAH)else_jump @MAIN_383 $CHEETAH = Car.Create(#CHEETAH, $7, $6, $5)036A: put_actor $PLAYER_ACTOR in_car $CHEETAH fade 1 1000 wait 100 03E6: remove_text_box :MAIN_441wait 2500 jump @MAIN_441 

 

 

The problem is, I can't get the player out of the car and I can't change coords of the car (I'm using the Steve's code which came in rar. file (the Steve's Map Cleaner 0.5) ).

How do to it? I tried everything but I mean everything but nothing. This code is little different, right?

Share this post


Link to post
Share on other sites
Dutchy3010

I'm sorry? What is the problem? I can change the coords by changing the following:

 

$7 = 0.0$6 = 0.0$5 = 30.0 

 

 

When I try it, I can get out of the car. Or do you mean out of the car with SCM? Then you can try the following opcode:

 

0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 2239.367 -1261.939 22.9375 

 

 

If you mean something else, please be more clear. wink.gif

Share this post


Link to post
Share on other sites
AB033

Thanks for hint.

I want to delete (remove) the car from the code and I want to place the player at these coords:

"-8.813769 -10.69844 24.99953"

How do I can do it? What is the code? I hope this is clear.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • 2 Users Currently Viewing
    0 members, 0 Anonymous, 2 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.