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

Happy Holidays from the GTANet team!

CAMERA CONTROL v3.0


_ASM_
 Share

Recommended Posts

CAMERA CONTROL v3.0

For GTA San Andreas

Coordinates of player, management for camera,

you can keep in view a control label

By BGgang team

Written in Sanny Builder v2.96

 

CONTROL :

Action - Select :

- View on screen of coordinates of the player

user posted image

- Set the tuning mode of camera

user posted image

- Exit

Left/Right - Select a change of camera or coordinates of label (camera look on pickup of BRIBE - it's some label).

Forward/Backward - Select of coordinate, which you need to change

 

Y - The increment a selected of coordinate (on value of accuracy)

N - The decrement a selected of coordinate (on value of accuracy)

Next weapon - The increment of the value an accuracy

Previous weapon - The decrement of the value an accuracy

You can use a delay ( when press Next weapon or Previous weapon ), to accelerate of change an accuracy

 

If press Jump (this will activate the direct control of camera) :

Y - Press to approach a label

N - Press to postpone a label

Next weapon - Press's key, to incline to the right of label

Previous weapon - Press's key, to incline to the left of label

 

If press Look behind (this will activate the direct control of label) :

Y - Press to approach a label

N - Press to postpone a label

Next weapon - Press's key, to incline to the right of camera

Previous weapon - Press's key, to incline to the left of camera

 

Add texts in "Main" table in your .GXT-file :

 

'MP_020' - Angle: ~n~X: ~n~Y: ~n~Z:

'MP_021' - Label

'MP_022' - Camera

'MP_023' - ~1~.~1~

'MP_024' - Accuracy:

'MP_025' - Distance:

 

 

Angle: - the rotate angle of camera

Accuracy: - value accuracy variable of change a coordinates

Distance: - distance between camera and label

 

[email protected] - delay

[email protected] - accuracy of the coordinates (in this instance 3 chars after comma)

 

Attention!!!

Engine of game GTASA has a peculiar distinctive feature.

When you will draw text with a variable or variables on the screen, engine of game will not show all zero high-order digits...

 

For example:

This is floating-point variable - 2098.045

View on screen - 2098.45

Read fraction as 45 thousands

 

This is floating-point variable - 1033.007

View on screen - 1033.7

Read fraction as 7 thousands

 

 

 

:CAMCONTROLthread "CAMCONTROL" var $Status1 : Integer = 0 $Status2 : Integer = 1 $Status3 : Integer = 1 $Status4 : Integer = 77 $Status5 : Float = 0.0 [email protected] : Float = 0.0 [email protected] : Float = 0.0 [email protected] : Float = 0.0 [email protected] : Float = 0.0 [email protected] : Float = 0.0 [email protected] : Float = 0.0 [email protected] : Integer = 0 [email protected] : Integer = 0 [email protected] : Integer = 0 [email protected] : Marker = 0 [email protected] : Integer = 1 [email protected] : Integer = 0 [email protected] : Integer = 0 [email protected] : Integer = 0 [email protected] : Integer = 0 [email protected] : Integer = 0  [email protected] : Integer = 0  [email protected] : Integer = 0 [email protected] : Float = 0.001 [email protected] : Float = 0.567 [email protected] : Float = 0.0 [email protected] : Float = 0.0 [email protected] : Float = 0.0 [email protected] : Float = 0.0 [email protected] : Float = 0.0 [email protected] : Float = 1000.0 [email protected] : Float = 0.0 [email protected] : Integer = 0  [email protected] : Integer = 0  [email protected] : Integer = 0 [email protected] : Integer = 0     // not usedend // varwhile true wait 0 repeat   wait 0 until 00E1: key_pressed 0 4 // repeat repeat   wait 0 until 80E1: not key_pressed 0 4 // repeat 03F0: texture_draw_toggle 1 Player.WantedLevel($PLAYER_CHAR) = 0 repeat   wait 0   04C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset 0.0 0.0 0.0   [email protected] = Actor.Angle($PLAYER_ACTOR)   [email protected] = [email protected]   0092: [email protected] = float_to_integer [email protected]    0097: make [email protected] absolute_float   [email protected] = [email protected]   0092: [email protected] = float_to_integer [email protected]    0093: [email protected] = integer_to_float [email protected]    [email protected] -= [email protected]   [email protected] *= [email protected]   0092: [email protected] = float_to_integer [email protected]   0348: set_text_draw_proportional 2    033F: set_text_draw_letter_width_height 0.54 2.02    0342: set_text_draw_centered 1    0349: text_draw_style = 3    0340: set_text_draw_color 255 255 255 alpha 255    060D: draw_text_shadow 1 color 0 0 0 alpha 255   045B: text_draw_2numbers 580.0 362.0 'MP_023' [email protected] [email protected]   [email protected] = [email protected]   0092: [email protected] = float_to_integer [email protected]    0097: make [email protected] absolute_float   [email protected] = [email protected]   0092: [email protected] = float_to_integer [email protected]    0093: [email protected] = integer_to_float [email protected]    [email protected] -= 20@   [email protected] *= [email protected]   0092: [email protected] = float_to_integer [email protected]   0348: set_text_draw_proportional 2    033F: set_text_draw_letter_width_height 0.54 2.02    0342: set_text_draw_centered 1    0349: text_draw_style = 3    0340: set_text_draw_color 255 255 255 alpha 255    060D: draw_text_shadow 1 color 0 0 0 alpha 255   045B: text_draw_2numbers 580.0 380.0 'MP_023' [email protected] [email protected]   [email protected] = [email protected]   0092: [email protected] = float_to_integer [email protected]    0097: make [email protected] absolute_float   [email protected] = [email protected]   0092: [email protected] = float_to_integer [email protected]    0093: [email protected] = integer_to_float [email protected]    [email protected] -= [email protected]   [email protected] *= [email protected]   0092: [email protected] = float_to_integer [email protected]   0348: set_text_draw_proportional 2    033F: set_text_draw_letter_width_height 0.54 2.02    0342: set_text_draw_centered 1    0349: text_draw_style = 3    0340: set_text_draw_color 255 255 255 alpha 255    060D: draw_text_shadow 1 color 0 0 0 alpha 255   045B: text_draw_2numbers 580.0 398.0 'MP_023' [email protected] [email protected]   [email protected] = [email protected]   0092: [email protected] = float_to_integer [email protected]    0097: make [email protected] absolute_float   [email protected] = [email protected]   0092: [email protected] = float_to_integer [email protected]    0093: [email protected] = integer_to_float [email protected]    [email protected] -= [email protected]   [email protected] *= [email protected]   0092: [email protected] = float_to_integer [email protected]   0348: set_text_draw_proportional 2    033F: set_text_draw_letter_width_height 0.54 2.02    0342: set_text_draw_centered 1    0349: text_draw_style = 3    0340: set_text_draw_color 255 255 255 alpha 255    060D: draw_text_shadow 1 color 0 0 0 alpha 255   045B: text_draw_2numbers 580.0 416.0 'MP_023' [email protected] [email protected]   03E4: set_text_draw_align_width_left 1   0348: set_text_draw_proportional 2    033F: set_text_draw_letter_width_height 0.54 2.02    0342: set_text_draw_centered 1    0349: text_draw_style = 3    0340: set_text_draw_color 255 215 0 alpha 255    060D: draw_text_shadow 1 color 0 0 0 alpha 255   033E: text_draw 530.0 362.0 'MP_020'   0348: set_text_draw_proportional 2    033F: set_text_draw_letter_width_height 0.54 2.02    0342: set_text_draw_centered 1    0349: text_draw_style = 3    0340: set_text_draw_color 255 255 255 alpha 255    060D: draw_text_shadow 1 color 0 0 0 alpha 255   045A: text_draw_1number 48.0 180.0 'NUMBER' $Status1   0348: set_text_draw_proportional 2    033F: set_text_draw_letter_width_height 0.54 2.02    0342: set_text_draw_centered 1    0349: text_draw_style = 3    0340: set_text_draw_color 255 255 255 alpha 255    060D: draw_text_shadow 1 color 0 0 0 alpha 255   045A: text_draw_1number 48.0 198.0 'NUMBER' $Status2   0348: set_text_draw_proportional 2    033F: set_text_draw_letter_width_height 0.54 2.02    0342: set_text_draw_centered 1    0349: text_draw_style = 3    0340: set_text_draw_color 255 255 255 alpha 255    060D: draw_text_shadow 1 color 0 0 0 alpha 255   045A: text_draw_1number 48.0 216.0 'NUMBER' $Status3   0348: set_text_draw_proportional 2    033F: set_text_draw_letter_width_height 0.54 2.02    0342: set_text_draw_centered 1    0349: text_draw_style = 3    0340: set_text_draw_color 255 255 255 alpha 255    060D: draw_text_shadow 1 color 0 0 0 alpha 255   045A: text_draw_1number 48.0 234.0 'NUMBER' $Status4   [email protected] = $Status5   0092: [email protected] = float_to_integer [email protected]    0097: make [email protected] absolute_float   [email protected] = [email protected]   0092: [email protected] = float_to_integer [email protected]    0093: [email protected] = integer_to_float [email protected]    [email protected] -= [email protected]   [email protected] *= [email protected]   0092: [email protected] = float_to_integer [email protected]   0348: set_text_draw_proportional 2    033F: set_text_draw_letter_width_height 0.54 2.02    0342: set_text_draw_centered 1    0349: text_draw_style = 3    0340: set_text_draw_color 255 255 255 alpha 255    060D: draw_text_shadow 1 color 0 0 0 alpha 255   045B: text_draw_2numbers 48.0 252.0 'MP_023' [email protected] [email protected] until 00E1: key_pressed 0 4 // repeat repeat   wait 0 until 80E1: not key_pressed 0 4 // repeat [email protected] = 0 [email protected] = 0 [email protected] = 1 [email protected] = 1 [email protected] = 1 04C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset 0.0 1.0 1.0 04C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset 0.0 20.0 1.0 [email protected] = Actor.Angle($PLAYER_ACTOR) $TELEPORT_LOCK = 1   repeat   wait 0    Player.CanMove($PLAYER_CHAR) = false    if [email protected] == 0      then         Pickup.Destroy([email protected])         Camera.SetPosition([email protected], [email protected], [email protected], 0.0, 0.0, 0.0)         Camera.PointAt([email protected], [email protected], [email protected], 2)         [email protected] = Pickup.Create(#BRIBE, 15, [email protected], [email protected], [email protected])         [email protected] = 1    end // if    if 00E1: key_pressed 0 1      then        if [email protected] == 0         then            if [email protected] == 2             then                [email protected] = 0             else                   [email protected] += 1            end            [email protected] = 1        end      else         [email protected] = 0    end // if    if 00E1: key_pressed 0 0      then         if [email protected] == 0          then             [email protected] *= -1             [email protected] = 1         end      else         [email protected] = 0    end // if    if 80E1: not key_pressed 0 14     then       if 80E1: not key_pressed 0 19        then           if 00E1: key_pressed 0 7             then               [email protected] += [email protected]               if [email protected] > 42                then                   [email protected] = [email protected]                   [email protected] *= 10.0                   [email protected] += [email protected]                else                      [email protected] += 1               end            else               if 80E1: not key_pressed 0 5                then                   [email protected] = 0               end           end // if           if 00E1: key_pressed 0 5            then               [email protected] -= [email protected]               if [email protected] > 42                then                   [email protected] = [email protected]                   [email protected] *= 10.0                   [email protected] -= [email protected]                else                      [email protected] += 1               end            else               if 80E1: not key_pressed 0 7                then                   [email protected] = 0               end           end // if           if [email protected] > 0            then               if 00E1: key_pressed 0 11                 then                    if [email protected] == 0                     then                        [email protected] += [email protected]                     else                        if [email protected] == 1                         then                            [email protected] += [email protected]                         else                            [email protected] += [email protected]                        end // if                    end // if                    [email protected] = 0               end // if               if 00E1: key_pressed 0 10                 then                    if [email protected] == 0                     then                        [email protected] -= [email protected]                     else                        if [email protected] == 1                         then                            [email protected] -= [email protected]                         else                            [email protected] -= [email protected]                        end // if                    end // if                    [email protected] = 0               end // if            else               if 00E1: key_pressed 0 11                 then                    if [email protected] == 0                     then                        [email protected] += [email protected]                     else                        if [email protected] == 1                         then                            [email protected] += [email protected]                         else                            [email protected] += [email protected]                        end // if                    end // if                    [email protected] = 0               end // if               if 00E1: key_pressed 0 10                 then                    if [email protected] == 0                     then                        [email protected] -= [email protected]                     else                        if [email protected] == 1                         then                            [email protected] -= [email protected]                         else                            [email protected] -= [email protected]                        end // if                    end // if                    [email protected] = 0               end // if           end       end    end    if 00E1: key_pressed 0 14     then             if 80E1: not key_pressed 0 19         then            if [email protected] == 0             then                [email protected] = [email protected]                     [email protected] = -1                [email protected] = 1            end            0509: [email protected] = distance between point [email protected] [email protected] and_point [email protected] [email protected]            if 00E1: key_pressed 0 11             then                [email protected] -= [email protected]                [email protected] = 1            end // if            if 00E1: key_pressed 0 10             then                [email protected] += [email protected]                [email protected] = 1            end // if            if 00E1: key_pressed 0 5              then                [email protected] -= [email protected]                if not [email protected] > 0.0                   then                     [email protected] = 359.999999                end // if                 [email protected] = 1            end // if            if 00E1: key_pressed 0 7             then                [email protected] += [email protected]                if [email protected] >= 360.0                   then                     [email protected] = 0.0                end // if                 [email protected] = 1            end // if            if [email protected] == 1             then                02F6: [email protected] = cosine [email protected]                02F7: [email protected] = sinus [email protected]                006B: [email protected] *= [email protected]                006B: [email protected] *= [email protected]                0087: [email protected] = [email protected]                0087: [email protected] = [email protected]                005B: [email protected] += [email protected]                0063: [email protected] -= [email protected]                0087: [email protected] = [email protected]                0087: [email protected] = [email protected]                [email protected] = 0                [email protected] = 0             end // if            [email protected] = 0        end         else        if [email protected] == 1         then            [email protected] = [email protected]            [email protected] = 0             end    end        if 00E1: key_pressed 0 19     then             if 80E1: not key_pressed 0 14         then                 if [email protected] == 0             then                [email protected] = [email protected]                     [email protected] = 1                [email protected] = 1            end            0509: [email protected] = distance between point [email protected] [email protected] and_point [email protected] [email protected]            if 00E1: key_pressed 0 11             then                [email protected] -= [email protected]                [email protected] = 1            end // if            if 00E1: key_pressed 0 10             then                [email protected] += [email protected]                [email protected] = 1            end // if            if 00E1: key_pressed 0 7              then                [email protected] -= [email protected]                if not [email protected] > 0.0                   then                     [email protected] = 359.999999                end // if                 [email protected] = 1            end // if            if 00E1: key_pressed 0 5             then                [email protected] += [email protected]                if [email protected] >= 360.0                   then                     [email protected] = 0.0                end // if                 [email protected] = 1            end // if            if [email protected] == 1             then                [email protected] = [email protected]                if [email protected] > 180.0                  then                     [email protected] -= 180.0                  else                     [email protected] += 180.0                end // if                02F6: [email protected] = cosine [email protected]                02F7: [email protected] = sinus [email protected]                006B: [email protected] *= [email protected]                006B: [email protected] *= [email protected]                0087: [email protected] = [email protected]                0087: [email protected] = [email protected]                005B: [email protected] += [email protected]                0063: [email protected] -= [email protected]                0087: [email protected] = [email protected]                0087: [email protected] = [email protected]                [email protected] = 0                [email protected] = 0             end // if            [email protected] = 0        end         else        if [email protected] == 1         then            [email protected] = [email protected]            [email protected] = 0             end    end        0509: [email protected] = distance between point [email protected] [email protected] and_point [email protected] [email protected]    [email protected] = [email protected]    0092: [email protected] = float_to_integer [email protected]     0097: make [email protected] absolute_float    [email protected] = [email protected]    0092: [email protected] = float_to_integer [email protected]     0093: [email protected] = integer_to_float [email protected]     [email protected] -= [email protected]    [email protected] *= [email protected]    0092: [email protected] = float_to_integer [email protected]    0348: set_text_draw_proportional 2     033F: set_text_draw_letter_width_height 0.54 2.02     0342: set_text_draw_centered 1     0349: text_draw_style = 3     0340: set_text_draw_color 255 215 0 alpha 255     060D: draw_text_shadow 1 color 0 0 0 alpha 255    033E: text_draw 486.5 344.0 'MP_025'    0348: set_text_draw_proportional 2     033F: set_text_draw_letter_width_height 0.54 2.02     0342: set_text_draw_centered 1     0349: text_draw_style = 3     0340: set_text_draw_color 255 255 255 alpha 255     060D: draw_text_shadow 1 color 0 0 0 alpha 255    045B: text_draw_2numbers 580.0 344.0 'MP_023' [email protected] [email protected]    [email protected] = [email protected]    0092: [email protected] = float_to_integer [email protected]     0097: make [email protected] absolute_float    [email protected] = [email protected]    0092: [email protected] = float_to_integer [email protected]     0093: [email protected] = integer_to_float [email protected]     [email protected] -= [email protected]    [email protected] *= [email protected]    0092: [email protected] = float_to_integer [email protected]    0348: set_text_draw_proportional 2     033F: set_text_draw_letter_width_height 0.54 2.02     0342: set_text_draw_centered 1     0349: text_draw_style = 3     0340: set_text_draw_color 255 255 255 alpha 255     060D: draw_text_shadow 1 color 0 0 0 alpha 255    045B: text_draw_2numbers 580.0 362.0 'MP_023' [email protected] [email protected]    0348: set_text_draw_proportional 2     033F: set_text_draw_letter_width_height 0.54 2.02     0342: set_text_draw_centered 1     0349: text_draw_style = 3     0340: set_text_draw_color 255 215 0 alpha 255     060D: draw_text_shadow 1 color 0 0 0 alpha 255    033E: text_draw 324.0 416.0 'MP_024'      [email protected] = [email protected]    0092: [email protected] = float_to_integer [email protected]     0097: make [email protected] absolute_float    0092: [email protected] = float_to_integer [email protected]     0093: [email protected] = integer_to_float [email protected]     [email protected] -= [email protected]    [email protected] *= [email protected]    0092: [email protected] = float_to_integer [email protected]    0348: set_text_draw_proportional 2     033F: set_text_draw_letter_width_height 0.54 2.02     0342: set_text_draw_centered 1     0349: text_draw_style = 3     0340: set_text_draw_color 255 255 255 alpha 255     060D: draw_text_shadow 1 color 0 0 0 alpha 255    045B: text_draw_2numbers 400.0 416.0 'MP_023' [email protected] [email protected]    03E4: set_text_draw_align_width_left 1    0348: set_text_draw_proportional 2     033F: set_text_draw_letter_width_height 0.54 2.02     0342: set_text_draw_centered 1     0349: text_draw_style = 3     0340: set_text_draw_color 255 215 0 alpha 255     060D: draw_text_shadow 1 color 0 0 0 alpha 255    033E: text_draw 530.0 362.0 'MP_020'    0348: set_text_draw_proportional 2     033F: set_text_draw_letter_width_height 0.54 2.02     0342: set_text_draw_centered 1     0349: text_draw_style = 3     0340: set_text_draw_color 255 215 0 alpha 255     060D: draw_text_shadow 1 color 0 0 0 alpha 255    if [email protected] > 0      then        [email protected] = [email protected]        033E: text_draw 468.0 416.0 'MP_021'      else        [email protected] = [email protected]        033E: text_draw 468.0 416.0 'MP_022'    end    0092: [email protected] = float_to_integer [email protected]     0097: make [email protected] absolute_float    [email protected] = [email protected]    0092: [email protected] = float_to_integer [email protected]     0093: [email protected] = integer_to_float [email protected]     [email protected] -= [email protected]    [email protected] *= [email protected]    0092: [email protected] = float_to_integer [email protected]    0348: set_text_draw_proportional 2     033F: set_text_draw_letter_width_height 0.54 2.02     0342: set_text_draw_centered 1     0349: text_draw_style = 3     if [email protected] == 0     then        0340: set_text_draw_color 192 33 33 alpha 255     else        0340: set_text_draw_color 255 255 255 alpha 255     end // if    060D: draw_text_shadow 1 color 0 0 0 alpha 255    045B: text_draw_2numbers 580.0 380.0 'MP_023' [email protected] [email protected]    if [email protected] > 0      then        [email protected] = [email protected]      else        [email protected] = [email protected]    end    0092: [email protected] = float_to_integer [email protected]     0097: make [email protected] absolute_float    [email protected] = [email protected]    0092: [email protected] = float_to_integer [email protected]     0093: [email protected] = integer_to_float [email protected]     [email protected] -= [email protected]    [email protected] *= [email protected]    0092: [email protected] = float_to_integer [email protected]    0348: set_text_draw_proportional 2     033F: set_text_draw_letter_width_height 0.54 2.02     0342: set_text_draw_centered 1     0349: text_draw_style = 3     if [email protected] == 1     then        0340: set_text_draw_color 192 33 33 alpha 255     else        0340: set_text_draw_color 255 255 255 alpha 255     end // if    060D: draw_text_shadow 1 color 0 0 0 alpha 255    045B: text_draw_2numbers 580.0 398.0 'MP_023' [email protected] [email protected]    if [email protected] > 0      then        [email protected] = [email protected]      else        [email protected] = [email protected]    end    0092: [email protected] = float_to_integer [email protected]     0097: make [email protected] absolute_float    [email protected] = [email protected]    0092: [email protected] = float_to_integer [email protected]     0093: [email protected] = integer_to_float [email protected]     [email protected] -= [email protected]    [email protected] *= [email protected]    0092: [email protected] = float_to_integer [email protected]    0348: set_text_draw_proportional 2     033F: set_text_draw_letter_width_height 0.54 2.02     0342: set_text_draw_centered 1     0349: text_draw_style = 3     if [email protected] == 2     then        0340: set_text_draw_color 192 33 33 alpha 255     else        0340: set_text_draw_color 255 255 255 alpha 255     end // if    060D: draw_text_shadow 1 color 0 0 0 alpha 255    045B: text_draw_2numbers 580.0 416.0 'MP_023' [email protected] [email protected] until 00E1: key_pressed 0 4 // repeat repeat   wait 0 until 80E1: not key_pressed 0 4 // repeat Player.CanMove($PLAYER_CHAR) = true Camera.Restore_WithJumpCut Pickup.Destroy([email protected]) $TELEPORT_LOCK = 0end // whileend_thread

 

Edited ASM - 02.06.2006 - 20:24

Bad english,

I'm sorry!

Edited by _ASM_
Link to comment
Share on other sites

Great code wink.gif It's really like Delphi so I like it!!

 

But there are many same pieces of code appearing again and again. I'm speaking about this

 

  033F: set_text_draw_letter_width_height 0.54 2.02   0342: set_text_draw_centered 1   0349: text_draw_style = 3   0340: set_text_draw_color 255 255 255 alpha 255   060D: draw_text_shadow 1 color 0 0 0 alpha 255

 

 

It'd be better to make this as separate block, the only routine (procedure) and gosubs to it. It will make the code more compact. So, add:

 

:text_draw_routine  033F: set_text_draw_letter_width_height 0.54 2.02   0342: set_text_draw_centered 1   0349: text_draw_style = 3   0340: set_text_draw_color 255 255 255 alpha 255   060D: draw_text_shadow 1 color 0 0 0 alpha 255return

 

and replace this piece of code with gosub @text_draw_routine in your script.

 

Good luck.

 

edit: mistypes

Edited by Seemann
Link to comment
Share on other sites

Wow, nice work, i really like the idea behind this. Is this thread asking for help or are you releasing this mod? Just out of interest, because if this is a release or a mod you have finished then it should be in the Mod Showroom. Sorry if i missed something.

 

Keep up the great work icon14.gif

Link to comment
Share on other sites

Great code wink.gif It's really like Delphi so I like it!!

 

But there are many same pieces of code appearing again and again. I'm speaking about this

 

  033F: set_text_draw_letter_width_height 0.54 2.02   0342: set_text_draw_centered 1   0349: text_draw_style = 3   0340: set_text_draw_color 255 255 255 alpha 255   060D: draw_text_shadow 1 color 0 0 0 alpha 255

 

 

It'd be better to make this as separate block, the only routine (procedure) and gosubs to it. It will make the code more compact. So, add:

 

:text_draw_routine  033F: set_text_draw_letter_width_height 0.54 2.02   0342: set_text_draw_centered 1   0349: text_draw_style = 3   0340: set_text_draw_color 255 255 255 alpha 255   060D: draw_text_shadow 1 color 0 0 0 alpha 255return

 

and replace this piece of code with gosub @text_draw_routine in your script.

 

Good luck.

 

edit: mistypes

Justly. Well, i may change this later...

All maybe... smile.gif

Link to comment
Share on other sites

 

Wow, nice work,

Thanks

 

 

i really like the idea behind this.

Idea rests on the surface...

 

 

Is this thread asking for help or are you releasing this mod? Just out of interest, because if this is a release or a mod you have finished then it should be in the Mod Showroom.

This is not mod.

It's just script for the all people creating new missions and clips for missions...

It's a necessary and comfortable script...

I think not only for me...

 

 

Sorry if i missed something.

All right!

Link to comment
Share on other sites

random_download

Whoa, I think you broke some sort of record with that decuple post right there wow.gif

Link to comment
Share on other sites

I lose connecting with server

 

Or Mozilla (also Opera) has crash...

 

Sorry, again...

Link to comment
Share on other sites

Quadropheniac90

LOL! Nice addition to your post count. tounge.gif Anyways, looks like a very nice script, I might try it sometimes.

user posted image
Link to comment
Share on other sites

BG_ASM, very good thread=) Thanks a lot, and for russian non-censored words. Õóé íå òîëüêî âîéíå, íî è ìèðó. Õóé õèæèíàì, âîéíà äðîâöàì. Òüôó áëÿäü die.gif

Pardon moi, banned me ph34r.gif

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.