BnB Posted October 27, 2010 Share Posted October 27, 2010 {$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 More sharing options...
Silent Posted October 27, 2010 Share Posted October 27, 2010 Why not just use: 0A96: [email protected] = actor $PLAYER_ACTOR struct000A: [email protected] += 0x46C Should work OK. Link to comment Share on other sites More sharing options...
BnB Posted October 27, 2010 Author Share Posted October 27, 2010 (edited) {$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 October 27, 2010 by BnB Link to comment Share on other sites More sharing options...
Pie015 Posted October 27, 2010 Share Posted October 27, 2010 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 More sharing options...
BnB Posted October 27, 2010 Author Share Posted October 27, 2010 I already know it I'll learn gradually I want to start from 0.(about Cped) Link to comment Share on other sites More sharing options...
Donny78 Posted October 27, 2010 Share Posted October 27, 2010 That's an "in car" check, the driving state is at 0x530 (driving is a value of 50, byte). Link to comment Share on other sites More sharing options...
BnB Posted October 27, 2010 Author Share Posted October 27, 2010 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 More sharing options...
Donny78 Posted October 27, 2010 Share Posted October 27, 2010 It was hanging around near 0x529 They are all on GTAModding. Link to comment Share on other sites More sharing options...
BnB Posted October 27, 2010 Author Share Posted October 27, 2010 (edited) It was hanging around near 0x529 They are all on GTAModding. Thanks all! Edited October 28, 2010 by BnB Link to comment Share on other sites More sharing options...
BnB Posted October 28, 2010 Author Share Posted October 28, 2010 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 More sharing options...
Donny78 Posted October 28, 2010 Share Posted October 28, 2010 I think your issue is the size, 4 is an integer, the block is a byte (1). Check out this wiki thread. Link to comment Share on other sites More sharing options...
BnB Posted October 29, 2010 Author Share Posted October 29, 2010 So, ... I don't think size is the problem! But should I change it to 1? Link to comment Share on other sites More sharing options...
TheSiggi Posted October 29, 2010 Share Posted October 29, 2010 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 More sharing options...
BnB Posted November 20, 2010 Author Share Posted November 20, 2010 (edited) 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 November 20, 2010 by BnB Link to comment Share on other sites More sharing options...
Bennington Posted November 20, 2010 Share Posted November 20, 2010 (edited) 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? Just another question, how to check if the player is aiming manually? EDIT: 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 EDIT: I´m an idiot He already posted th solution Edited November 20, 2010 by Bennington Link to comment Share on other sites More sharing options...
BnB Posted November 20, 2010 Author Share Posted November 20, 2010 What do you mean? BTW Coders Spanish site are stealing our mods! Link to comment Share on other sites More sharing options...
Bennington Posted November 20, 2010 Share Posted November 20, 2010 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 Coders? Spanish site? Link to comment Share on other sites More sharing options...
EUX adamant4 Posted November 20, 2010 Share Posted November 20, 2010 lol i like the fact that there was 3 topics in a row that all involved getting the target point could you post a link to the site please, BnB? Link to comment Share on other sites More sharing options...
BnB Posted November 20, 2010 Author Share Posted November 20, 2010 (edited) 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 November 20, 2010 by BnB Link to comment Share on other sites More sharing options...
Bennington Posted November 20, 2010 Share Posted November 20, 2010 (edited) 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 Which motherf*cker stole my All mission access Mod?!? EDIT: But... where is it? I can´t find it Edited November 20, 2010 by Bennington Link to comment Share on other sites More sharing options...
BnB Posted November 20, 2010 Author Share Posted November 20, 2010 (edited) http://www.detonandogta.net/2010/09/gta-sa...ons-access.html I just want to put authors! Edited November 20, 2010 by BnB Link to comment Share on other sites More sharing options...
Bennington Posted November 20, 2010 Share Posted November 20, 2010 Wow... motherf*cker and what to do now? Link to comment Share on other sites More sharing options...
BnB Posted November 20, 2010 Author Share Posted November 20, 2010 Wow... motherf*ckerand what to do now? I'm wondering that too! Link to comment Share on other sites More sharing options...
Bennington Posted November 20, 2010 Share Posted November 20, 2010 Im just trying to get someone on their xat-chat the version they took is my old v1.0 EDIT: If I could speak some spanish, I would register there and kick their ass. Link to comment Share on other sites More sharing options...
BnB Posted November 20, 2010 Author Share Posted November 20, 2010 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 More sharing options...
Bennington Posted November 20, 2010 Share Posted November 20, 2010 google translator Link to comment Share on other sites More sharing options...
TheSiggi Posted November 20, 2010 Share Posted November 20, 2010 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 ! One word: Spambots! cheers btw: thanx anyway BnB, I'll try to find a contact to that brazilian site Link to comment Share on other sites More sharing options...
Bennington Posted November 20, 2010 Share Posted November 20, 2010 Siggi, you´re a real godfather! Thank you 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 More sharing options...
TheSiggi Posted November 20, 2010 Share Posted November 20, 2010 (edited) 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.... ????? http://gtapakistan.webs.com/apps/profile/46037044/ Edited November 20, 2010 by The_Siggi Link to comment Share on other sites More sharing options...
Bennington Posted November 20, 2010 Share Posted November 20, 2010 Right, f*ck the other forums Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now