Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (85,501 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

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

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption 2

    2. Red Dead Redemption

    3. Rockstar Games

    1. Off-Topic

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

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

    2. Site Suggestions

ZAZ

Mission Coding for Dummies and Pro's!

Recommended Posts

velnens123

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!

Share this post


Link to post
Share on other sites
DaRk_St0rM

Great work!

The best tutorial i'v seen.

Thank you very much.

biggrin.gifcookie.gif

Share this post


Link to post
Share on other sites
basiljoseph

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.

 

Share this post


Link to post
Share on other sites
kalonkas

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. ;/

Share this post


Link to post
Share on other sites
ZAZ

 

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

 

 

Share this post


Link to post
Share on other sites
deltaCJ

How can i make a phone call?

Share this post


Link to post
Share on other sites
ZAZ

How can i make a phone call?

load model CELLPHONE first, then use opcode 0729:

Share this post


Link to post
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

×

Important Information

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