Jump to content

Cycle for and offsets


n3kitOzz

Recommended Posts

Im going to write aim, its freezing enemy position in one place with my coords. But i need to freeze all cords without my coords.
 

x_cord = {}
y_cord = {}
z_cord = {}
x_cord[1] = {}
y_cord[1] = {}
z_cord[1] = {}

function aim()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('1.0;0.65000009537;0.15000000596::18', gg.TYPE_FLOAT)
gravitation = gg.getResults(1)

x_cord[1].address = gravitation[1].address - 28 
y_cord[1].address = gravitation[1].address - 24
z_cord[1].address = gravitation[1].address - 20
  
--[[here is only mine coords, x, y and z]]

x_cord[1].flags = gg.TYPE_FLOAT
y_cord[1].flags = gg.TYPE_FLOAT
z_cord[1].flags = gg.TYPE_FLOAT

gg.toast('finded your xyz')

gg.clearResults()

gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('1 028 443 341;1 956 496 814;1 000 593 162;992 204 554;1 053 609 164;1 052 938 075::60', gg.TYPE_DWORD)
--[[this one can find coords of all players, and mine]]
gg.refineNumber('1 052 938 075', gg.TYPE_DWORD)
vals = gg.getResults(500)

--[[here i need a cycle for, this cycle offsets to +30, +34, +38 address from refined, checks with x_cord[1], y_cord..., if equal - ignore, becouse i dont need to freeze myself, else - edit and freeze it to my coords. I tried to do this manually, this is working. Help me with this cycle]]

end

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.