Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

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

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    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. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. 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. Red Dead Redemption 2

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

    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
    1. Announcements

    2. Forum Support

    3. Suggestions

Mission Coding for Dummies and Pro's!


ZAZ
 Share

Recommended Posts

Great tutorial! I have learned a basic scripting, but how to use fades and make everyone attack you. Fades just doesnt work, whatever I do!

Link to comment
Share on other sites

  • 4 weeks later...

Please, dont give direct links to the Sanny Builder installer (your very first post contains it). Link to the download page instead. The reason is that direct links become broken eventually (as that your link to SB 3.03) thus useless.

 

Link to comment
Share on other sites

  • 11 months later...

Very nice tutorial! Great job, but i have an question.

 

I want to make an elevator, and i've tried with 2 codes, both don't work, any help?

 

 

{$CLEO .cs}:LIFTS_103A4: name_thread 'LIFT':LIFTS_20001: wait 0 ms00D6: if 00256:   player $PLAYER_CHAR defined004D: jump_if_false @LIFTS_200D6: if 000FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -545.9601 2594.1699 53.5156 radius 200.0 200.0 200.0004D: jump_if_false @LIFTS_20247: request_model 167950247: request_model 16797038B: load_requested_models:LIFTS_30001: wait 0 msif  and0248:   model 16795 available0248:   model 16797 available004D: jump_if_false @LIFTS_30107: [email protected] = create_object 16795 at -534.84 2632.83 52.50177: set_object [email protected] Z_angle_to 268.0  0392: make_object [email protected] moveable 10107: [email protected] = create_object 16797 at -532.875 2657.53 33.130177: set_object [email protected] Z_angle_to -2.340392: make_object [email protected] moveable 10006: [email protected] = 0:LIFTS_40001: wait 0 ms00D6: if 00256:   player $PLAYER_CHAR defined004D: jump_if_false @LIFTS_1301BB: store_object [email protected] position_to [email protected]  [email protected]  [email protected]: if 000FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -545.9601 2594.1699 53.5156 radius 210.0 210.0 210.0004D: jump_if_false @LIFTS_13if0039:   [email protected] == 0004D: jump_if_false @LIFTS_5if   or00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -534.84 2632.83 52.5 radius 3.0 3.0 3.000FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -534.48 2640.05 46.39 radius 8.0 8.0 3.0004D: jump_if_false @LIFTS_5      0006: [email protected] = 1:LIFTS_5if0039:   [email protected] == 1004D: jump_if_false @LIFTS_7if0021:   [email protected] >  46.0  // floating-point values004D: jump_if_false @LIFTS_6034E:    move_object [email protected] to -534.84 2632.83 45.0 speed 0.0 0.0 0.04 flag 0      0002: jump @LIFTS_4:LIFTS_60006: [email protected] = 20001: wait 2000 ms0002: jump @LIFTS_4:LIFTS_7if0039:   [email protected] == 2004D: jump_if_false @LIFTS_4if0023:   52.5 > [email protected]  // floating-point values004D: jump_if_false @LIFTS_8034E:    move_object [email protected] to -534.84 2632.83 53.5 speed 0.0 0.0 0.04 flag 00002: jump @LIFTS_4:LIFTS_80006: [email protected] = 00001: wait 2000 ms0002: jump @LIFTS_4:LIFTS_13    0108: destroy_object [email protected]: destroy_object [email protected]: jump @LIFTS_2

Its ZAZ code, but when i come near elevator my gta crashes.

 

 

{$CLEO .cs}:ONEDOOR_103A4: name_thread 'ONEDOOR' :ONEDOOR_30001: wait 0 ms if0256:   player $PLAYER_CHAR defined 004D: jump_if_false @ONEDOOR_3if00FE:   actor $PLAYER_ACTOR  0 (in-sphere)near_point -2288.26 582.877 33.706 radius  80.5  80.5  80.5004D: jump_if_false @ONEDOOR_30107: [email protected] = create_object 3095 at -2288.26 582.877 33.7060007: [email protected] =  -2288.26     // default X (closed)0007: [email protected] =  582.877  //default Y (closed)0007: [email protected] =  33.706  //default Z (closed)0007: [email protected] =  -2288.26    // destination X (open)0007: [email protected] =  582.877  // destination Y (open)  0007: [email protected] =  50.906  // destination Z (open)0006: [email protected] = 00006: [email protected] = 00002: jump @ONEDOOR_12:ONEDOOR_120001: wait 0 ms if0256:   player $PLAYER_CHAR defined 004D: jump_if_false @ONEDOOR_75 if 80FE:   not actor $PLAYER_ACTOR  0 (in-sphere)near_point [email protected] [email protected] [email protected] radius  95.5  95.5  95.5004D: jump_if_false @ONEDOOR_13 0002: jump @ONEDOOR_75:ONEDOOR_13if0039:   [email protected] ==  0  // integer values004D: jump_if_false @ONEDOOR_15 if00FE:   actor $PLAYER_ACTOR  0 (in-sphere)near_point [email protected] [email protected] [email protected] radius  20.5  20.5  20.50AB0:   key_pressed 76//------------------key = L 004D: jump_if_false @ONEDOOR_150006: [email protected] = 1000A: [email protected] +=  1  // integer values0002: jump @ONEDOOR_15:ONEDOOR_15if0039:   [email protected] ==  1  // integer values004D: jump_if_false @ONEDOOR_18:ONEDOOR_16if0039:   [email protected] ==  1  // integer values004D: jump_if_false @ONEDOOR_17034E: move_object [email protected] to  [email protected] [email protected] [email protected] speed  0.0 0.0 0.9 flag  0if04E5:  object [email protected] near_point [email protected] [email protected] [email protected] radius 1.0 1.0 flag 0004D: jump_if_false @ONEDOOR_170006: [email protected] = 20006: [email protected] = 10001: wait 500 ms0002: jump @ONEDOOR_29:ONEDOOR_17if0039:   [email protected] ==  3  // integer values004D: jump_if_false @ONEDOOR_18034E: move_object [email protected] to  [email protected] [email protected] [email protected] speed  0.0 0.0 0.9 flag  0if04E5:  object [email protected] near_point [email protected] [email protected] [email protected] radius 0.1 0.1 flag 0004D: jump_if_false @ONEDOOR_180006: [email protected] = 00006: [email protected] = 0:ONEDOOR_18if  and0039:   [email protected] ==  2  // integer values80FE:   not actor $PLAYER_ACTOR  0 (in-sphere)near_point [email protected] [email protected] [email protected] radius  19.0  19.0  15.0004D: jump_if_false @ONEDOOR_190006: [email protected] = 10006: [email protected] = 30002: jump @ONEDOOR_12:ONEDOOR_19if  and0039:   [email protected] ==  2  // integer values80FE:   not actor $PLAYER_ACTOR  0 (in-sphere)near_point [email protected] [email protected] [email protected] radius  3.0  3.0  5.00AB0:   key_pressed 76004D: jump_if_false @ONEDOOR_290006: [email protected] = 10006: [email protected] = 30002: jump @ONEDOOR_12:ONEDOOR_290002: jump @ONEDOOR_12:ONEDOOR_7501C4: remove_references_to_object [email protected]  // This object will now disappear when the player looks away03F0: text_draw_toggle  0  0001: wait 1000 ms0006: [email protected] = 00006: [email protected] = 00002: jump @ONEDOOR_3

still ZAZ script, but it opens gates, i changed values but object doesnt move. ;/

Link to comment
Share on other sites

 

Very nice tutorial! Great job, but i have an question.

 

I want to make an elevator, and i've tried with 2 codes, both don't work, any help?

 

Its ZAZ code, but when i come near elevator my gta crashes.

model id 16795 and 16797 don't exist in originaly San Andreas

the member stripprpimp added 2 objects to his game as lift objects and asked for help to realize a special liftscript where you found that script

 

 

still ZAZ script, but it opens gates, i changed values but object doesnt move. ;/

it doesn't work anymore because you edited values, hoping the object would move vertical

but the script works only for object moving horizontal

 

 

Link to comment
Share on other sites

  • 3 years later...
  • 2 years later...
LordStarship

Somebody should revive the Mission Coding For Pro's. ZAZ could do it, since Patrick and Dutchy disappeared from the community.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

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