CLEO Help NameTagHack/Wallhack 0.3.7-r4

CLEO related
Status
Not open for further replies.

Mielsen_

Member
Joined
Mar 30, 2020
Messages
6
Reaction score
0
Location
Iran
Anyone has any info on a nametaghack/wallhack that would work on samp version 0.3.7-r4, i cant find anything online just older versions that crash my game.
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,719
Solutions
1
Reaction score
111
Yeah you just need to change the offsets of the nametag hack to 0.3.7 R4 ones.
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,719
Solutions
1
Reaction score
111
How does one do that, i'v never done that before.
Well you find what offsets the nametag hack is using (pretty sure it's like SAMP_INFO_SETTINGS and then something further) and you just change them. You can find alot of offsets in s0beit sources/headers or whatever. Obviously because no one cares about R4 you will probably have to find yourself.
https://forum.sa-mp.com/showthread.php?t=599574
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
You just need change pSettings offset to R4 pSettings Offset
PHP:
{$CLEO .cs}

0000:

wait 15000

0AB1: @SAMP_GetNameTagSettings params 0 NameTagsDistance 0@ NoNametagsBehindWalls 1@ byteShowNameTags 2@

WHILE TRUE
WAIT 0

IF
0ADC:   test_cheat "1"
THEN
    IF
    31@ == FALSE
    THEN
        31@ = TRUE
        0ACD: show_text_highpriority "nametag ~g~Activated" time 1000
        0AB1: @SAMP_SetNameTagSettings params 3 NameTagsDistance 500.0 NoNametagsBehindWalls FALSE ShowNameTags TRUE
    ELSE
        31@ = FALSE
        0ACD: show_text_highpriority "nametag ~r~Deactivated" time 1000
        0AB1: @SAMP_SetNameTagSettings params 3 NameTagsDistance 0@ byteNoNametagsBehindWalls 1@ byteShowNameTags 2@
    END
END

END

:SAMP_GetNameTagSettings
IF
0AA2: 10@ = load_library "samp.dll" // IF and SET
THEN
    000A: 10@ += 0x26EA0C // SAMP_INFO_OFFSET
    0A8D: 11@ = read_memory 10@ size 4 virtual_protect TRUE // stSAMPStruct
    000A: 11@ += 0x3D5 // pSettings
    0A8D: 12@ = read_memory 11@ size 4 virtual_protect TRUE // ServerPresetsStruct
 
    0A8E: 25@ = 12@ + 0x27 // fNameTagsDistance
    0A8E: 26@ = 12@ + 0x2F // byteNoNametagsBehindWalls
    0A8E: 27@ = 12@ + 0x38 // byteShowNameTags
    0A8D: 25@ = read_memory 25@ size 4 virtual_protect TRUE {fNameTagsDistance}
    0A8D: 26@ = read_memory 26@ size 1 virtual_protect TRUE {byteNoNametagsBehindWalls}
    0A8D: 27@ = read_memory 27@ size 1 virtual_protect TRUE {byteShowNameTags}
    0485:  return_true
    0AB2: RET 3 25@ 26@ 27@
ELSE
    0485:  return_true
END
0AB2: 0  

:SAMP_SetNameTagSettings
IF
0AA2: 10@ = load_library "samp.dll" // IF and SET
THEN
    000A: 10@ += 0x26EA0C // SAMP_INFO_OFFSET
    0A8D: 11@ = read_memory 10@ size 4 virtual_protect TRUE // stSAMPStruct
    000A: 11@ += 0x3D5 // pSettings
    0A8D: 12@ = read_memory 11@ size 4 virtual_protect TRUE // ServerPresetsStruct
 
    0A8E: 25@ = 12@ + 0x27 // fNameTagsDistance
    0A8E: 26@ = 12@ + 0x2F // byteNoNametagsBehindWalls
    0A8E: 27@ = 12@ + 0x38 // byteShowNameTags
    0A8C: write_memory 25@ size 4 value 0@ virtual_protect TRUE // fNameTagsDistance
    0A8C: write_memory 26@ size 1 value 1@ virtual_protect TRUE // byteNoNametagsBehindWalls
    0A8C: write_memory 27@ size 1 value 2@ virtual_protect TRUE // byteShowNameTags
END
0AB2: RET 0
 

Mielsen_

Member
Joined
Mar 30, 2020
Messages
6
Reaction score
0
Location
Iran
Well you find what offsets the nametag hack is using (pretty sure it's like SAMP_INFO_SETTINGS and then something further) and you just change them. You can find alot of offsets in s0beit sources/headers or whatever. Obviously because no one cares about R4 you will probably have to find yourself.
https://forum.sa-mp.com/showthread.php?t=599574
Cant find anything that has SAMP_INFO_SETTINGS in it.
 

Mielsen_

Member
Joined
Mar 30, 2020
Messages
6
Reaction score
0
Location
Iran
You just need change pSettings offset to R4 pSettings Offset
PHP:
{$CLEO .cs}

0000:

wait 15000

0AB1: @SAMP_GetNameTagSettings params 0 NameTagsDistance 0@ NoNametagsBehindWalls 1@ byteShowNameTags 2@

WHILE TRUE
WAIT 0

IF
0ADC:   test_cheat "1"
THEN
    IF
    31@ == FALSE
    THEN
        31@ = TRUE
        0ACD: show_text_highpriority "nametag ~g~Activated" time 1000
        0AB1: @SAMP_SetNameTagSettings params 3 NameTagsDistance 500.0 NoNametagsBehindWalls FALSE ShowNameTags TRUE
    ELSE
        31@ = FALSE
        0ACD: show_text_highpriority "nametag ~r~Deactivated" time 1000
        0AB1: @SAMP_SetNameTagSettings params 3 NameTagsDistance 0@ byteNoNametagsBehindWalls 1@ byteShowNameTags 2@
    END
END

END

:SAMP_GetNameTagSettings
IF
0AA2: 10@ = load_library "samp.dll" // IF and SET
THEN
    000A: 10@ += 0x26EA0C // SAMP_INFO_OFFSET
    0A8D: 11@ = read_memory 10@ size 4 virtual_protect TRUE // stSAMPStruct
    000A: 11@ += 0x3D5 // pSettings
    0A8D: 12@ = read_memory 11@ size 4 virtual_protect TRUE // ServerPresetsStruct

    0A8E: 25@ = 12@ + 0x27 // fNameTagsDistance
    0A8E: 26@ = 12@ + 0x2F // byteNoNametagsBehindWalls
    0A8E: 27@ = 12@ + 0x38 // byteShowNameTags
    0A8D: 25@ = read_memory 25@ size 4 virtual_protect TRUE {fNameTagsDistance}
    0A8D: 26@ = read_memory 26@ size 1 virtual_protect TRUE {byteNoNametagsBehindWalls}
    0A8D: 27@ = read_memory 27@ size 1 virtual_protect TRUE {byteShowNameTags}
    0485:  return_true
    0AB2: RET 3 25@ 26@ 27@
ELSE
    0485:  return_true
END
0AB2: 0 

:SAMP_SetNameTagSettings
IF
0AA2: 10@ = load_library "samp.dll" // IF and SET
THEN
    000A: 10@ += 0x26EA0C // SAMP_INFO_OFFSET
    0A8D: 11@ = read_memory 10@ size 4 virtual_protect TRUE // stSAMPStruct
    000A: 11@ += 0x3D5 // pSettings
    0A8D: 12@ = read_memory 11@ size 4 virtual_protect TRUE // ServerPresetsStruct

    0A8E: 25@ = 12@ + 0x27 // fNameTagsDistance
    0A8E: 26@ = 12@ + 0x2F // byteNoNametagsBehindWalls
    0A8E: 27@ = 12@ + 0x38 // byteShowNameTags
    0A8C: write_memory 25@ size 4 value 0@ virtual_protect TRUE // fNameTagsDistance
    0A8C: write_memory 26@ size 1 value 1@ virtual_protect TRUE // byteNoNametagsBehindWalls
    0A8C: write_memory 27@ size 1 value 2@ virtual_protect TRUE // byteShowNameTags
END
0AB2: RET 0

Crashed as soon as i loaded a save. Also didnt find anywhere pStetthings/R4 pStettings Offset
 

Mielsen_

Member
Joined
Mar 30, 2020
Messages
6
Reaction score
0
Location
Iran
Anyone has any info on a nametaghack/wallhack that would work on samp version 0.3.7-r4, i cant find anything online just older versions that crash my game.
This is the wall i used before if anyone is willing to help me or at least tell me where to start.
 

Attachments

  • WallHack.cs
    20.5 KB · Views: 261
Status
Not open for further replies.
Top