Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (86,222 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

Sign in to follow this  
David Thapa

NEED HELP TO Find coordinates

Recommended Posts

David Thapa

Re Edit To Make it Clear i need Mod where Ped (NOT CJ) aiming at or firing at With Guns Thanks in Advance

 

I want to make mod like (Body guard) Holding Gun Which is i'll Replace (Silent Gun Model with Flower) and Guard will Shoot at enemy with it

Using opcode

 

06BC: create_M4_shoot_from [email protected] [email protected] [email protected] target [email protected] [email protected] [email protected] energy 150

 

and gun should work like Silent gun.... i don't know Can Some one Really Help me with it :(

 

 

Edited by David Thapa

Share this post


Link to post
Share on other sites
Sanmodder

i need coordinates X Y Z where Ped (NOT CJ) aiming at or firing at With Guns Thanks in Advance

try this :)

{$CLEO .cs}0000: nopwhile true     repeat    wait 0     until if player.Defined(0)    Actor.StorePos($PLAYER_ACTOR, [email protected], [email protected], [email protected])    if        0AE1: [email protected] = random_actor_near_point [email protected] [email protected] [email protected] in_radius 1000.0 find_next 1 pass_deads 0 //IF and SET     then        if            not actor.Dead([email protected])        then            if or                051A:   actor $PLAYER_ACTOR damaged_by_actor [email protected]                 02E0:   actor [email protected] firing_weapon            then                03F0: enable_text_draw 0                 038E: draw_box_position 318.0 430.0 size 643.0 33.0 RGBA 0 0 0 160                 0349: set_text_draw_font 3                 0340: set_text_draw_RGBA 255 255 255 255                 033F: set_text_draw_letter_size 0.4 0.9                 060D: draw_text_shadow 1 rgba 50 50 255 255                 045B: draw_text_2numbers 17.0 420.0 GXT 'time' numbers [email protected] [email protected]                 0349: set_text_draw_font 3                 0340: set_text_draw_RGBA 255 255 255 255                 033F: set_text_draw_letter_size 0.4 0.9                 060D: draw_text_shadow 1 rgba 50 50 255 255                 045B: draw_text_2numbers 140.0 420.0 GXT 'time' numbers [email protected] [email protected]                 0349: set_text_draw_font 3                 0340: set_text_draw_RGBA 255 255 255 255                 033F: set_text_draw_letter_size 0.4 0.9                 060D: draw_text_shadow 1 rgba 50 50 255 255                 045B: draw_text_2numbers 280.0 420.0 GXT 'time' numbers [email protected] [email protected]                 0349: set_text_draw_font 3                 0340: set_text_draw_RGBA 255 255 255 255                 033F: set_text_draw_letter_size 0.4 0.9                 060D: draw_text_shadow 1 rgba 50 50 255 255                 045A: draw_text_1number 420.0 420.0 GXT 'number' number [email protected]                [email protected] = Actor.Angle([email protected])                0092: [email protected] = float [email protected] to_integer                 Actor.StorePos([email protected], [email protected], [email protected], [email protected])                0092: [email protected] = float [email protected] to_integer                 0092: [email protected] = float [email protected] to_integer                 0092: [email protected] = float [email protected] to_integer                 0093: [email protected] = integer [email protected] to_float                 0093: [email protected] = integer [email protected] to_float                 0093: [email protected] = integer [email protected] to_float                 0063: [email protected] -= [email protected] // (float)                 0063: [email protected] -= [email protected] // (float)                 0063: [email protected] -= [email protected] // (float)                 [email protected] *= 10000.0                 [email protected] *= 10000.0                 [email protected] *= 10000.0                 0092: [email protected] = float [email protected] to_integer                 0092: [email protected] = float [email protected] to_integer                 0092: [email protected] = float [email protected] to_integer                 if                     0 > [email protected]                 then                     [email protected] *= -1                 end                if                     0 > [email protected]                 then                    [email protected] *= -1                 end                if                     0 > [email protected]                 then                     [email protected] *= -1                 end            end        end    endend

Share this post


Link to post
Share on other sites
David Thapa

David Thapa, on 19 Jan 2018 - 3:29 PM, said:snapback.png

i need coordinates X Y Z where Ped (NOT CJ) aiming at or firing at With Guns Thanks in Advance

try this :)

{$CLEO .cs}

0000: nop

while true
repeat
wait
0
until if player.Defined(0)
Actor.StorePos($PLAYER_ACTOR, 25@, 26@, 27@)
if
0AE1: 28@ = random_actor_near_point 25@ 26@ 27@ in_radius 1000.0 find_next 1 pass_deads 0 //IF and SET
then
if
not actor.Dead(28@)
then
if or
051A: actor $PLAYER_ACTOR damaged_by_actor 28@
02E0: actor 28@ firing_weapon
then
03F0: enable_text_draw 0
038E: draw_box_position 318.0 430.0 size 643.0 33.0 RGBA 0 0 0 160
0349: set_text_draw_font 3
0340: set_text_draw_RGBA 255 255 255 255
033F: set_text_draw_letter_size 0.4 0.9
060D: draw_text_shadow 1 rgba 50 50 255 255
045B: draw_text_2numbers 17.0 420.0 GXT 'time' numbers 3@ 11@
0349: set_text_draw_font 3
0340: set_text_draw_RGBA 255 255 255 255
033F: set_text_draw_letter_size 0.4 0.9
060D: draw_text_shadow 1 rgba 50 50 255 255
045B: draw_text_2numbers 140.0 420.0 GXT 'time' numbers 4@ 12@
0349: set_text_draw_font 3
0340: set_text_draw_RGBA 255 255 255 255
033F: set_text_draw_letter_size 0.4 0.9
060D: draw_text_shadow 1 rgba 50 50 255 255
045B: draw_text_2numbers 280.0 420.0 GXT 'time' numbers 5@ 13@
0349: set_text_draw_font 3
0340: set_text_draw_RGBA 255 255 255 255
033F: set_text_draw_letter_size 0.4 0.9
060D: draw_text_shadow 1 rgba 50 50 255 255
045A: draw_text_1number 420.0 420.0 GXT 'number' number 15@
9@ = Actor.Angle(28@)
0092: 15@ = float 9@ to_integer
Actor.StorePos(28@, 0@, 1@, 2@)
0092: 3@ = float 0@ to_integer
0092: 4@ = float 1@ to_integer
0092: 5@ = float 2@ to_integer
0093: 6@ = integer 3@ to_float
0093: 7@ = integer 4@ to_float
0093: 8@ = integer 5@ to_float
0063: 0@ -= 6@ // (float)
0063: 1@ -= 7@ // (float)
0063: 2@ -= 8@ // (float)
0@ *= 10000.0
1@ *= 10000.0
2@ *= 10000.0
0092: 11@ = float 0@ to_integer
0092: 12@ = float 1@ to_integer
0092: 13@ = float 2@ to_integer
if
0 > 11@
then
11@ *= -1
end
if
0 > 12@
then
12@ *= -1
end
if
0 > 13@
then
13@ *= -1
end
end
end
end
end

 

Thanks for your Precious Time Brother But I am Not Exactly looking for it i have re edit the topic what i was looking for it

 

 

Edited by David Thapa

Share this post


Link to post
Share on other sites
David Thapa

 

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
Sign in to follow this  

×

Important Information

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