Quantcast

Jump to content

» «
Photo

NEED HELP TO Find coordinates

3 replies to this topic
David Thapa
  • David Thapa

    Crackhead

  • Members
  • Joined: 05 Jul 2017
  • India

#1

Posted 19 January 2018 - 09:59 AM Edited by David Thapa, 27 January 2018 - 03:50 PM.

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 :(

 

 


Sanmodder
  • Sanmodder

    Fan script

  • Members
  • Joined: 11 Sep 2017
  • Poland

#2

Posted 21 January 2018 - 12:21 PM

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, [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
    end
end


David Thapa
  • David Thapa

    Crackhead

  • Members
  • Joined: 05 Jul 2017
  • India

#3

Posted 27 January 2018 - 03:51 PM Edited by David Thapa, 27 January 2018 - 03:52 PM.

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

  •  

 

 


David Thapa
  • David Thapa

    Crackhead

  • Members
  • Joined: 05 Jul 2017
  • India

#4

Posted 24 February 2018 - 04:00 PM





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users