Rapid Fire C++

iAmerican

Member
Joined
Aug 6, 2014
Messages
6
Reaction score
0
[font=-apple-system, BlinkMacSystemFont, Roboto,]for (int gun = 23; gun <= 31; gun++) { [/font]
[font=-apple-system, BlinkMacSystemFont, Roboto,]*(float *)(((gun + 0) * 0x70) + 0xC8AAB8 + 0x5C) = 10.0; [/font]
[font=-apple-system, BlinkMacSystemFont, Roboto,]}[/font]

[font=-apple-system, BlinkMacSystemFont, Roboto,]for (int gun = 23; gun <= 31; gun++) { [/font]
[font=-apple-system, BlinkMacSystemFont, Roboto,]*(float *)(((gun + 25) * 0x70) + 0xC8AAB8 + 0x5C) = 10.0; [/font]
[font=-apple-system, BlinkMacSystemFont, Roboto,]}[/font]

[font=-apple-system, BlinkMacSystemFont, Roboto,]for (int gun = 23; gun <= 31; gun++) { [/font]
[font=-apple-system, BlinkMacSystemFont, Roboto,]*(float *)(((gun + 36) * 0x70) + 0xC8AAB8 + 0x5C) = 10.0; [/font]
[font=-apple-system, BlinkMacSystemFont, Roboto,]}[/font]

[font=-apple-system, BlinkMacSystemFont, Roboto,][size=small][font=-apple-system, BlinkMacSystemFont, Roboto,]for (int gun = 23; gun <= 31; gun++) { [/font]
[/font][/size]

[font=-apple-system, BlinkMacSystemFont, Roboto,]*(float *)(((gun + 47) * 0x70) + 0xC8AAB8 + 0x5C) = 10.0; [/font]
[font=-apple-system, BlinkMacSystemFont, Roboto,][size=small][font=-apple-system, BlinkMacSystemFont, Roboto,]}[/font][/font][/size]

Not Working  :-/
tell my why please?
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,127
Solutions
1
Reaction score
158
i remember using the code below to increase shooting rate:

Code:
{$CLEO .cs}                
0000: NOP 
repeat
wait 50
until 0AFA:  is_samp_available

:First
wait 0
for 1@ = 22 to 33 
0AB1: @Increase_Shootrate 3 | -> Change Weapon 1@ Offset 0x40 SIZE_OF_DAT 4
0AB1: @Increase_Shootrate 3 | -> Change Weapon 1@ Offset 0x44 SIZE_OF_DAT 4
0AB1: @Increase_Shootrate 3 | -> Change Weapon 1@ Offset 0x48 SIZE_OF_DAT 4 //

0AB1: @Increase_Shootrate 3 | -> Change Weapon 1@ Offset 0x4C SIZE_OF_DAT 4
0AB1: @Increase_Shootrate 3 | -> Change Weapon 1@ Offset 0x50 SIZE_OF_DAT 4
0AB1: @Increase_Shootrate 3 | -> Change Weapon 1@ Offset 0x54 SIZE_OF_DAT 4 
end
0A93: end_custom_thread
jump @First

:Increase_Shootrate
0@ += 0x24 // UNKNOWN
0@ *= 0x70 // BLOCK SIZE
0@ += 0xC8AAB8 // BASE
005A: 0@ += 1@ // (int)
0A8D: 4@ = read_memory 0@ size 2@ virtual_protect 0
0AF8: samp add_message_to_chat "%f" color -1 4@
0013: 4@ *= 0.95
0A8C: write_memory 0@ size 2@ value 4@ virtual_protect 0
0AB2: ret 0  

so you could do something like:

Code:
for(int offset = 0x40; offset <= 0x54; offset += 0x4)
{
    for (int gun = 23; gun <= 31; gun++) { 
    *(float *)(((gun + 0) * 0x70) + 0xC8AAB8 + offset) = 10.0; 
    }
    
    for (int gun = 23; gun <= 31; gun++) { 
    *(float *)(((gun + 25) * 0x70) + 0xC8AAB8 + offset) = 10.0; 
    }
    
    for (int gun = 23; gun <= 31; gun++) { 
    *(float *)(((gun + 36) * 0x70) + 0xC8AAB8 + offset) = 10.0; 
    }
    
    for (int gun = 23; gun <= 31; gun++) { 
    
    *(float *)(((gun + 47) * 0x70) + 0xC8AAB8 + offset) = 10.0; 
    }
}

idk what are default values at these addresses but maybe reading memory first and using multiplier would be a good idea (I remember that decreasing the value too much made shooting impossible)
something like:
Code:
*(float *)(((gun + 47) * 0x70) + 0xC8AAB8 + offset) = *(float *)(((gun + 47) * 0x70) + 0xC8AAB8 + offset) * 0.8;
 

iAmerican

Member
Joined
Aug 6, 2014
Messages
6
Reaction score
0
monday said:
i remember using the code below to increase shooting rate:

Code:
{$CLEO .cs}                
0000: NOP 
repeat
wait 50
until 0AFA:  is_samp_available

:First
wait 0
for 1@ = 22 to 33 
0AB1: @Increase_Shootrate 3 | -> Change Weapon 1@ Offset 0x40 SIZE_OF_DAT 4
0AB1: @Increase_Shootrate 3 | -> Change Weapon 1@ Offset 0x44 SIZE_OF_DAT 4
0AB1: @Increase_Shootrate 3 | -> Change Weapon 1@ Offset 0x48 SIZE_OF_DAT 4 //

0AB1: @Increase_Shootrate 3 | -> Change Weapon 1@ Offset 0x4C SIZE_OF_DAT 4
0AB1: @Increase_Shootrate 3 | -> Change Weapon 1@ Offset 0x50 SIZE_OF_DAT 4
0AB1: @Increase_Shootrate 3 | -> Change Weapon 1@ Offset 0x54 SIZE_OF_DAT 4 
end
0A93: end_custom_thread
jump @First

:Increase_Shootrate
0@ += 0x24 // UNKNOWN
0@ *= 0x70 // BLOCK SIZE
0@ += 0xC8AAB8 // BASE
005A: 0@ += 1@ // (int)
0A8D: 4@ = read_memory 0@ size 2@ virtual_protect 0
0AF8: samp add_message_to_chat "%f" color -1 4@
0013: 4@ *= 0.95
0A8C: write_memory 0@ size 2@ value 4@ virtual_protect 0
0AB2: ret 0  

so you could do something like:

Code:
for(int offset = 0x40; offset <= 0x54; offset += 0x4)
{
    for (int gun = 23; gun <= 31; gun++) { 
    *(float *)(((gun + 0) * 0x70) + 0xC8AAB8 + offset) = 10.0; 
    }
    
    for (int gun = 23; gun <= 31; gun++) { 
    *(float *)(((gun + 25) * 0x70) + 0xC8AAB8 + offset) = 10.0; 
    }
    
    for (int gun = 23; gun <= 31; gun++) { 
    *(float *)(((gun + 36) * 0x70) + 0xC8AAB8 + offset) = 10.0; 
    }
    
    for (int gun = 23; gun <= 31; gun++) { 
    
    *(float *)(((gun + 47) * 0x70) + 0xC8AAB8 + offset) = 10.0; 
    }
}

idk what are default values at these addresses but maybe reading memory first and using multiplier would be a good idea (I remember that decreasing the value too much made shooting impossible)
something like:
Code:
*(float *)(((gun + 47) * 0x70) + 0xC8AAB8 + offset) = *(float *)(((gun + 47) * 0x70) + 0xC8AAB8 + offset) * 0.8;


[font=arial, sans-serif]It turns out differently ::([/font]

[font=arial, sans-serif]CLEO - http://ugbase.eu/Thread-REL-Adjustable-rapid-fire-9-levels-UPDATE-1-1?highlight=rapid[/font]

[font=arial, sans-serif]VIDEO : [/font]
[font=arial, sans-serif]https://www.youtube.com/watch?v=_8DcwPJdJMw&feature=youtu.be[/font]

[font=arial, sans-serif]First - CLEO ^^[/font]

[font=arial, sans-serif]Last - C++ :([/font]
 
Joined
Dec 31, 2015
Messages
712
Reaction score
27
Alesha opyat asi multihack delaesh? po screenam u goodplayer spalil odin i tot je soft xd
 

iAmerican

Member
Joined
Aug 6, 2014
Messages
6
Reaction score
0
supahdupahnubah said:
Alesha opyat asi multihack delaesh? po screenam u goodplayer spalil odin i tot je soft xd

ya ne delal asi multihackov
 
Top