0x3c5 based on 0.3.7
curious about the offset address of SAMP_INFO_SETTINGS_OFFSET 0.3.dl.
i need 0.3.dl nametag hack
global SAMP_INFO_SETTINGS_OFFSET := 0x3C5 ; v0.3.7
getTagNameCurrentDistance() {
if(!checkHandles())
return -1
dwSAMPInfo := readDWORD(hGTA, dwSAMP + SAMP_INFO_OFFSET[sampVersion])
if(ErrorLevel) {
ErrorLevel := ERROR_READ_MEMORY
return -1
}
dwSAMPInfoSettings := readDWORD(hGTA, dwSAMPInfo + SAMP_INFO_SETTINGS_OFFSET)
if(ErrorLevel) {
ErrorLevel := ERROR_READ_MEMORY
return -1
}
distance := readFloat(hGTA, dwSAMPInfoSettings + 0x27)
if(ErrorLevel) {
ErrorLevel := ERROR_READ_MEMORY
return -1
}
ErrorLevel := ERROR_OK
return distance
}
setTagNameDistance(status, distance) {
if(!checkHandles())
return -1
status := status ? 1 : 0
dwSAMPInfo := readDWORD(hGTA, dwSAMP + SAMP_INFO_OFFSET[sampVersion])
if(ErrorLevel) {
ErrorLevel := ERROR_READ_MEMORY
return -1
}
dwSAMPInfoSettings := readDWORD(hGTA, dwSAMPInfo + SAMP_INFO_SETTINGS_OFFSET)
if(ErrorLevel) {
ErrorLevel := ERROR_READ_MEMORY
return -1
}
writeByte(hGTA, dwSAMPInfoSettings + 0x38, 1)
if(ErrorLevel) {
ErrorLevel := ERROR_WRITE_MEMORY
return -1
}
writeByte(hGTA, dwSAMPInfoSettings + 0x2F, status)
if(ErrorLevel) {
ErrorLevel := ERROR_WRITE_MEMORY
return -1
}
writeFloat(hGTA, dwSAMPInfoSettings + 0x27, distance)
if(ErrorLevel) {
ErrorLevel := ERROR_WRITE_MEMORY
return -1
}
ErrorLevel := ERROR_OK
return
}
curious about the offset address of SAMP_INFO_SETTINGS_OFFSET 0.3.dl.
i need 0.3.dl nametag hack
global SAMP_INFO_SETTINGS_OFFSET := 0x3C5 ; v0.3.7
getTagNameCurrentDistance() {
if(!checkHandles())
return -1
dwSAMPInfo := readDWORD(hGTA, dwSAMP + SAMP_INFO_OFFSET[sampVersion])
if(ErrorLevel) {
ErrorLevel := ERROR_READ_MEMORY
return -1
}
dwSAMPInfoSettings := readDWORD(hGTA, dwSAMPInfo + SAMP_INFO_SETTINGS_OFFSET)
if(ErrorLevel) {
ErrorLevel := ERROR_READ_MEMORY
return -1
}
distance := readFloat(hGTA, dwSAMPInfoSettings + 0x27)
if(ErrorLevel) {
ErrorLevel := ERROR_READ_MEMORY
return -1
}
ErrorLevel := ERROR_OK
return distance
}
setTagNameDistance(status, distance) {
if(!checkHandles())
return -1
status := status ? 1 : 0
dwSAMPInfo := readDWORD(hGTA, dwSAMP + SAMP_INFO_OFFSET[sampVersion])
if(ErrorLevel) {
ErrorLevel := ERROR_READ_MEMORY
return -1
}
dwSAMPInfoSettings := readDWORD(hGTA, dwSAMPInfo + SAMP_INFO_SETTINGS_OFFSET)
if(ErrorLevel) {
ErrorLevel := ERROR_READ_MEMORY
return -1
}
writeByte(hGTA, dwSAMPInfoSettings + 0x38, 1)
if(ErrorLevel) {
ErrorLevel := ERROR_WRITE_MEMORY
return -1
}
writeByte(hGTA, dwSAMPInfoSettings + 0x2F, status)
if(ErrorLevel) {
ErrorLevel := ERROR_WRITE_MEMORY
return -1
}
writeFloat(hGTA, dwSAMPInfoSettings + 0x27, distance)
if(ErrorLevel) {
ErrorLevel := ERROR_WRITE_MEMORY
return -1
}
ErrorLevel := ERROR_OK
return
}
Последнее редактирование: