Race Checkpoints Memory Address

SchlaDruf

Member
Joined
Jan 23, 2015
Messages
9
Reaction score
0
I need for my Scripts the memory address of Race Checkpoints.

Acutally i have the three addresses of one Race Checkpoint (X, Y and Z-axis)

The problem is on the server I play, that first one Race Checkpoint will created at one adress and the next checkpoint will be created when you arrive the first, but the second marker have an another memory address.

The third marker has the same address like the first. The fourth has the same like the second ...

Have somebody the addresses of the second Race Checkpoint that will be created?
 

Fu$10N

Expert
Joined
Mar 5, 2014
Messages
1,101
Reaction score
8
SchlaDruf link said:
Can u give us the server you are playing on ?
Or better yet, if u just want to teleport in the checkpoint, use race checkpoint syncer :urtheman:
 

SchlaDruf

Member
Joined
Jan 23, 2015
Messages
9
Reaction score
0
The server I play is Revival Gaming Network. It's a german Roleplay Server.

The server-ip is: samp.rgn.gr

If you wanna play there, you will need a Anti-Cheat Client.
https://anticheat.revival-gaming.net/

And no, i don't want to teleport me to the checkpoints. I want only read the marker positions for a list.
 
Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
samp.dll + 0x21A10C = stMiscInfo
stMiscInfo + 0x2C = position of 1st race cp
stMiscInfo + 0x38 = position of 2nd race cp
 

SchlaDruf

Member
Joined
Jan 23, 2015
Messages
9
Reaction score
0
This is how it works with the first marker (normal GTA:SA):

Code:
getRaceCoordinates() {
    if(!checkHandles())
        return ""
    
    fX := readFloat(hGTA, ADDR_POSITION_RACE_X)
    if(ErrorLevel) {
        ErrorLevel := ERROR_READ_MEMORY
        return ""
    }
    
    fY := readFloat(hGTA, ADDR_POSITION_RACE_Y)
    if(ErrorLevel) {
        ErrorLevel := ERROR_READ_MEMORY
        return ""
    }
    
    fZ := readFloat(hGTA, ADDR_POSITION_RACE_Z)
    if(ErrorLevel) {
        ErrorLevel := ERROR_READ_MEMORY
        return ""
    }
    
    ErrorLevel := ERROR_OK
    return [fX, fY, fZ]
}

springfield your addresses are only two marker memory addresses. How can I get from this two adresses the X, Y and Z-Axis?
Maybe you can write a code like above because I can't really understand how I should use the memory addresses you post.
 

SchlaDruf

Member
Joined
Jan 23, 2015
Messages
9
Reaction score
0
How i can get the x-, y- and z-position of the markers?

With every new checkpoint is changing the first adress, so the adress is right. But i dont know how get the x-, y- and z- position.
Which offset i must add for the axis-position ?
 
Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
first checkpoint(red one, with arrow that points in the direction of second checkpoint)
0x2C = float X
0x30 = float Y
0x34 = float Z
second checkpoint
0x38 = float X
0x3C = float Y
0x40 = float Z

fX := readFloat((samp.dll + 0x21A10C)+0x2C, ADDR_POSITION_RACE_X)
something like this, idk AHK, but it's basic memory reading
 
Top