Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. Gameplay
      2. Missions
      3. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Arena War
      2. After Hours
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA Next

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. 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. 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. News

    2. Forum Support

    3. Site Suggestions

Sign in to follow this  
BnB

CPed

Recommended Posts

BnB

 

{$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

Share this post


Link to post
Share on other sites
BnB

 

{$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

Share this post


Link to post
Share on other sites
Pie015

I might sound like a noob but:

 

 

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

 

Share this post


Link to post
Share on other sites
BnB

I already know it I'll learn gradually I want to start from 0.(about Cped)

Share this post


Link to post
Share on other sites
Donny78

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

Share this post


Link to post
Share on other sites
BnB
That's an "in car" check, the driving state is at 0x530 (driving is a value of 50, byte).

Where did you found it?

Share this post


Link to post
Share on other sites
Donny78

It was hanging around near 0x529 biggrin.gif

 

They are all on GTAModding.

Share this post


Link to post
Share on other sites
BnB

 

It was hanging around near 0x529  biggrin.gif

 

They are all on GTAModding.

Thanks all!

Edited by BnB

Share this post


Link to post
Share on other sites
BnB

 

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!

Share this post


Link to post
Share on other sites
Donny78

I think your issue is the size, 4 is an integer, the block is a byte (1).

 

Check out this wiki thread.

Share this post


Link to post
Share on other sites
BnB

So, ... I don't think size is the problem! But should I change it to 1?

Share this post


Link to post
Share on other sites
TheSiggi

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

Share this post


Link to post
Share on other sites
BnB

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

Share this post


Link to post
Share on other sites
Bennington

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

Share this post


Link to post
Share on other sites
BnB

What do you mean?

BTW

Coders Spanish site are stealing our mods!

Share this post


Link to post
Share on other sites
Bennington

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

Share this post


Link to post
Share on other sites
EUX adamant4

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?

 

Share this post


Link to post
Share on other sites
BnB

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

Share this post


Link to post
Share on other sites
Bennington

 

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

 

EDIT:

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

Edited by Bennington

Share this post


Link to post
Share on other sites
Bennington

Wow... motherf*cker

and what to do now?

Share this post


Link to post
Share on other sites
BnB
Wow... motherf*cker

and what to do now?

I'm wondering that too!

Share this post


Link to post
Share on other sites
Bennington

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.

Share this post


Link to post
Share on other sites
BnB
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

Share this post


Link to post
Share on other sites
Bennington

google translator biggrin.gif

Share this post


Link to post
Share on other sites
TheSiggi

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

Share this post


Link to post
Share on other sites
Bennington

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...

Share this post


Link to post
Share on other sites
TheSiggi

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

Share this post


Link to post
Share on other sites
Bennington

Right, f*ck the other forums biggrin.gif

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • 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.