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

CPed


BnB
 Share

Recommended Posts

 

{$CLEO}0000:                                    while true   wait 0    0A8E: [email protected] = 0xB6F5F0 + 0x46C // int   0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0   if and       not [email protected] == 3       [email protected] == 1   then       0321: kill_actor $PLAYER_ACTOR   end   end

 

 

Here is my script it don't crash but it don't work!

I want to check if player is driving!

http://www.gtamodding.com/index.php?title=...%29#Pedestrians

Link to comment
Share on other sites

Why not just use:

 

0A96: [email protected] = actor $PLAYER_ACTOR struct000A: [email protected] += 0x46C

 

Should work OK.

Link to comment
Share on other sites

 

{$CLEO}0000:                                    while true   wait 0    0A96: [email protected] = actor $PLAYER_ACTOR struct   000A: [email protected] += 0x46C   0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0   if        [email protected] == 1   then       0321: kill_actor $PLAYER_ACTOR   end   end 

 

 

Hmm.. The mistake is hiden into that script!

It don't crash but it don't work!

Edited by BnB
Link to comment
Share on other sites

I might sound like a noob but:

 

 

wait 0if     Actor.Driving($PLAYER_ACTOR)then0321: kill_actor $PLAYER_ACTORend

 

Link to comment
Share on other sites

That's an "in car" check, the driving state is at 0x530 (driving is a value of 50, byte).

Where did you found it?

Link to comment
Share on other sites

 

CPed +0x5A0 = [byte] Start of weapon data (28 bytes) (See structures: WeaponSlot) 

 

 

WeaponSlot                 // Total 28BytesDWORD       type          // + 0DWORD       state         // + 4 (0 idle, 1 firing, 2 reloading)DWORD       AmmoInClip    // + 8DWORD       AmmoRemaining // +12FLOAT       unknown       // +16 (increases each time you fire your weapon, 0 when weapon not active,                              probably used to count bullets fired to know when to reload?)UNKNOWN     0..7 Bytes    // +20 (unknown - goggle mode, 0 off and 256 on)...+27

 

 

How can I use 0x5A0?

I want to get the state // + 4 (0 idle, 1 firing, 2 reloading)

Where +4 goes?

 

Here is my code:

 

{$CLEO}0000:                                    while true   wait 0    0A96: [email protected] = actor $PLAYER_ACTOR struct   000A: [email protected] += 0x5A0   000A: [email protected] += 4   0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0   if        [email protected] == 1   then       0321: kill_actor $PLAYER_ACTOR   end   end

 

 

Sry for double post but I wanted to draw your attention!

Link to comment
Share on other sites

Yes, because with 4 you're reading 4 bytes = 0ne integer, so change the size and you'll be able to read out a single byte

Link to comment
Share on other sites

  • 4 weeks later...

Finally ...

 

{$CLEO}  0000: ....while 8AB0: not 80   wait 0endwhile true   wait 0   gosub @label   03F0: enable_text_draw 1    045A: draw_text_1number 250.0 40.0 GXT 'NUMBER' number [email protected]  end:label0A96: [email protected] = actor $PLAYER_ACTOR struct000A: [email protected] += 0x7180A8D: [email protected] = read_memory [email protected] size 1 virtual_protect 0 0A96: [email protected] = actor $PLAYER_ACTOR struct000A: [email protected] += 0x5A00012: [email protected] *= 0x1C005A: [email protected] += [email protected] // (int)000A: [email protected] += 0x40A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 return  

 

Edited by BnB
Link to comment
Share on other sites

I just wanted to ask, how to check if player is firing, too...

BnB, are you asking that for giving answer in the other topic by me? mercie_blink.gif

biggrin.gif

 

Just another question, how to check if the player is aiming manually?

 

EDIT:

mercie_blink.gif Well, I don´t even unsterstand how BnB solved the problem...

How to check if player is firing?

I badly need some further education in reading memory adresses dontgetit.gif

 

EDIT:

I´m an idiot biggrin.gif He already posted th solution moto_whistle.gif

Edited by Bennington
Link to comment
Share on other sites

You remember the topic with the impact position of bullets?

Already seen my edit on the last post there?

Then you know what I mean smile.gif

 

Coders? Spanish site? dontgetit.gif

Link to comment
Share on other sites

lol i like the fact that there was 3 topics in a row that all involved getting the target point lol.gif

 

could you post a link to the site please, BnB?

 

Link to comment
Share on other sites

http://www.detonandogta.net

http://www.gtamodificado.net

http://www.gta-alienware.com

My Turret Mod http://www.gta-alienware.com/2010/09/mod-c...nt-mod-v10.html

Siggi's Weapon Menu Mod http://www.gta-alienware.com/2010/08/menu-de-armas-v2.html

All mission access Mod

ZAZ's pimp my car mod

But sometimes they put authors

Edited by BnB
Link to comment
Share on other sites

 

Which motherf*cker stole my All mission access Mod?!?

 

EDIT:

But... where is it? I can´t find it sneaky2.gif

Edited by Bennington
Link to comment
Share on other sites

Im just trying to get someone on their xat-chat

 

the version they took is my old v1.0 biggrin.gif

 

EDIT: If I could speak some spanish, I would register there and kick their ass.

Link to comment
Share on other sites

EDIT: If I could speak some spanish, I would register there and kick their ass.

The only spanish word I know is cabron from Running Dog GTA SA Mission

Link to comment
Share on other sites

Unfortunately there isn't much you can do against it. gtagaming I think, is full of scripts by ZAZ but posted under another name and also mods by alot of other people.

Just feel honored your work is so popular, someone else trys to increase its popularity, and go on.

Only thing you can do is publishing the mod on the biggest sites: Gtagarage.com, gtainside.com, dejis-site, gtamodding.it and so on so its getting realy common and people will remember 'ey, that mod here was first published by BnB/ZAZ/whoever originaly at whatever.com!'

 

Also don't put your e-mail address into the readme confused.gif! One word: Spambots! facedesk.gif

 

cheers

 

btw: thanx anyway BnB, I'll try to find a contact to that brazilian site tounge.gif

Link to comment
Share on other sites

Siggi, you´re a real godfather! Thank you smile.gif

But anyway, in the readme I said that they have just to mention me, but they didn´t...

Link to comment
Share on other sites

I know, I just googled my mods and found a couple of other sites but there is nothing you can do... don't even waste your time or thoughts on how to own these guys. Its a) not worth it, you're not loosing much since you don't earn any money with it and neither do they; b) useless, they'll ignore you or won't give a f*ck.

 

Just keep in mind you're the one who had the effort, the success and gained the respect here on this platform.

 

btw: What the bloody.... mercie_blink.gif ????? http://gtapakistan.webs.com/apps/profile/46037044/

Edited by The_Siggi
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.