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. Support

    3. Suggestions

Disable marker not work ?


2pacproducer2
 Share

Recommended Posts

2pacproducer2

Hey ,

 

I m making a simple mission in cleo , and I already done it , but I cant disable markers after when I end mission , and after when player enters car, wtf ? heres the code :

 

 

{$CLEO .cm}//-------------MAIN---------------thread "2PACP_MISSION" gosub @2PACP_MISSION_53 if wasted_or_busted else_jump @2PACP_MISSION_44 gosub @2PACP_MISSION_562 :2PACP_MISSION_44gosub @2PACP_MISSION_592 end_thread :2PACP_MISSION_53increment_mission_attempts $ONMISSION = 1 :2PACP_MISSION_62wait 0 if   Player.Defined($PLAYER_CHAR)else_jump @2PACP_MISSION_62 :2PACP_MISSION_82Model.Load(#FAM1)Model.Load(#ADMIRAL)038B: load_requested_models wait 0 if and  Model.Available(#FAM1)  Model.Available(#ADMIRAL)else_jump @2PACP_MISSION_82 0169: set_fade_color_RGB 0 0 0 fade 1 [email protected] = Actor.Create(Gang2, #FAM1, 2301.103, -1631.119, 14.62129)Actor.Angle([email protected]) = 180.00245: set_actor [email protected] walk_style_to "DRUNKMAN" Player.SetDrunkVisuals($PLAYER_CHAR, 100)[email protected] = Car.Create(#ADMIRAL, 2298.197, -1638.927, 14.72176)Car.Angle([email protected]) = 180.003BC: [email protected] = create_sphere_at 2506.868 -1676.66 13.38116 radius 2.0 05CA: AS_actor [email protected] enter_car [email protected] passenger_seat 2 10000 ms Player.CanMove($PLAYER_CHAR) = False0395: clear_area 1 at 2298.197 -1638.927 14.72176 radius 50.0 02A3: enable_widescreen 1 015F: set_camera_position 2301.103 -1631.119 14.62129 rotation 0.0 0.0 0.0 0160: set_camera_point_at 2298.197 -1638.927 14.72176 mode 2 0674: set_car_model #ADMIRAL numberplate "_SHERM__" 00BE: text_clear_all :2PACP_MISSION_294wait 0 if   Actor.InCar([email protected], [email protected])else_jump @2PACP_MISSION_294 Player.CanMove($PLAYER_CHAR) = True02A3: enable_widescreen 0 [email protected] = Marker.CreateAboveCar([email protected])07E0: set_marker [email protected] type_to 1 Camera.SetBehindPlayerCamera.Restore_WithJumpCut0526: set_actor [email protected] stay_in_car 1 018A: [email protected] = create_checkpoint_at 2506.868 -1676.66 13.38116wait 0 if   Actor.InCar($PLAYER_ACTOR, [email protected])else_jump @2PACP_MISSION_294 Marker.Disable([email protected])wait 0 if   not Actor.Dead([email protected])else_jump @2PACP_MISSION_562 jump @2PACP_MISSION_403 :2PACP_MISSION_403wait 0 if wasted_or_busted else_jump @2PACP_MISSION_427 jump @2PACP_MISSION_562 :2PACP_MISSION_427wait 0 if   not Car.Wrecked([email protected])else_jump @2PACP_MISSION_562 wait 0 if   not Actor.Dead([email protected])else_jump @2PACP_MISSION_562 wait 0 if 0103:   actor $PLAYER_ACTOR in_sphere 2506.868 -1676.66 13.38116 radius 2.0 2.0 2.0 sphere 0 stopped_in_car else_jump @2PACP_MISSION_403 jump @2PACP_MISSION_450 :2PACP_MISSION_450wait 0 if   not Car.Wrecked([email protected])jf @2PACP_MISSION_562wait 0 if   not Actor.Dead([email protected])jf @2PACP_MISSION_562wait 0 if wasted_or_busted else_jump @2PACP_MISSION_460 jump @2PACP_MISSION_562:2PACP_MISSION_46000BE: text_clear_all Marker.Disable([email protected])Marker.Disable([email protected])0526: set_actor [email protected] stay_in_car 0 Player.CanMove($PLAYER_CHAR) = False02A3: enable_widescreen 1 03BD: destroy_sphere [email protected] 05CD: AS_actor [email protected] exit_car [email protected] wait 3000Player.CanMove($PLAYER_CHAR) = True02A3: enable_widescreen 0 jump @2PACP_MISSION_526:2PACP_MISSION_52600BE: text_clear_all Marker.Disable([email protected])Marker.Disable([email protected])03BD: destroy_sphere [email protected] Player.SetDrunkVisuals($PLAYER_CHAR, 0)01E3: show_text_1number_styled GXT 'M_PASSR' number 0 time 5000 style 1  // MCC• Bƒ’O‚HEHA!~n~~w~’P‡HAHE +0998: add_respect 50 return :2PACP_MISSION_56200BE: text_clear_all Marker.Disable([email protected])Marker.Disable([email protected])03BD: destroy_sphere [email protected] Player.SetDrunkVisuals($PLAYER_CHAR, 0)00BA: show_text_styled GXT 'M_FAIL' time 5000 style 1  // ~r~MCC• ’POBA‚EHA!return :2PACP_MISSION_592Model.Destroy(#FAM1)Model.Destroy(#ADMIRAL)Actor.RemoveReferences([email protected])Car.RemoveReferences([email protected])$ONMISSION = 0 mission_cleanup return 

 

Link to comment
Share on other sites

gtasbigfoot

 

Well, I think it's the same, but try useing 0164. 

 

Correct 0164: is the same opcode but when compile it change to it it's a key word opcode like model.load,but it's not the opcode which is the failur

it's the way it's used.

 

 

 

1: You do not need this if wasted_or_busted near end of script the start of the mision deals wit it.

 

 

0050: gosub @missionstart00D6: if  0112:   wasted_or_busted

 

 

2: Look in the mission INTRO and you see why it ant going away after you enter the car do it the same way R* do it in that mission,If player driving

jump if flase to another loop if driving disable the marker

 

Use jump and jump_if_flase together they make a very good pair.

 

 

00D6: if 00DF:   actor $PLAYER_ACTOR driving 004D: jump_if_false @somthing0002: jump @disable      

 

 

 

 

Link to comment
Share on other sites

 

Well, I think it's the same, but try useing 0164.  

 

Correct 0164: is the same opcode but when compile it change to it it's a key word opcode like model.load,but it's not the opcode which is the failure.

 

 

Marker.Disable() //Marker handle goes in brackets

 

Edited by james227uk
Link to comment
Share on other sites

2pacproducer2

nthing working, AAhhhhh , nvm , I will jsut delete that mission and create a simple thread . dontgetit.gifdozingoff.gif

Link to comment
Share on other sites

First, you can't use the "return" opcode if there aren't any gosub and second the references won't be removed because there aren't any jumps to the last label.

012          345
678   9A   BCD
EFG HIJK LMN
OPQR  STUV
WX    YZ

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.