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!

get the killer


Bad.boy!
 Share

Recommended Posts

I want to get a ped who shoots at CJ, but I can't find a way to do this. 051A, works only if you created the actor who shoot at CJ.

I also tried in C#, with NTAuthority's plugin, but I can't get the handle there either:

 

using System;using System.Collections.Generic;using System.Linq;using System.Text;using GTA;using GTA.Internal;namespace First_script{   public class FS : TickScript   {       public FS()       {           Interval = 250;           Tick += new EventHandler(FS_Tick);       }       void FS_Tick(object sender, EventArgs e)       {           if (myPed == null)           {               Cheats.RegisterCheat("payback", cheat_BB);           }       }       Ped myPed = null;       public void cheat_BB()       {           if (Player.CanControlCharacter == true)           {               if (Player.Character.IsDriving == true)               {               }               else               {                   var targetPeds = World.GetAllPeds();                   Player.Character.DamagedBy() //For weapon, actor or car               }           }       }   }}

 

Link to comment
Share on other sites

Only with scm created?

 

{$CLEO}0000:while true   wait 0   if       actor.Defined($3)   then       actor.StorePos($3, [email protected], [email protected], [email protected])       if           0AE1: [email protected] = random_actor_near_point [email protected] [email protected] [email protected] in_radius 200.0 find_next false pass_deads true       then           repeat               if                   051A: actor $3 damaged_by_actor [email protected]               then                   // [email protected] has handle of this ped                   actor.StorePos([email protected], [email protected], [email protected], [email protected])                   016F: create_shadow 3 rotation 0.0 size 1.5 intensity 1 RGB 255 0 0 at [email protected] [email protected] [email protected]               end           until 8AE1: not [email protected] = random_actor_near_point [email protected] [email protected] [email protected] in_radius 200.0 find_next true pass_deads true       end   endend

 

And also I think that this actor stored somewhere in CPed struct, just look how this opcode (051A) get it.

 

Edit

 

{$CLEO}0000:while true   wait 0   if       actor.Defined($3)   then       0A96: [email protected] = actor $3 struct       [email protected] += 0x764       0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0       if           [email protected] > 0       then           0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0           if or               [email protected] == 0x86C358               [email protected] == 0x86C0A8               [email protected] == 0x86C120               [email protected] == 0x86C200           then               0AEA: [email protected] = actor_struct [email protected] handle               actor.StorePos([email protected], [email protected], [email protected], [email protected])               016F: create_shadow 3 rotation 0.0 size 1.5 intensity 1 RGB 255 0 0 at [email protected] [email protected] [email protected]           end       end   endend

 

Edited by DK22Pac
Link to comment
Share on other sites

Thanks for the help. I was wondering for a long time how to get that.

 

And for people who are interested this is how to get it in c#:

 

var Peds = from ped in World.GetAllPeds()                                    where (Player.Character.DamagedBy(ped) == true)                                    select ped;                   foreach (var ped in Peds)

 

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.