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.How does one do that, i'v never done that before.
{$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
Cant find anything that has SAMP_INFO_SETTINGS in it.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
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
This is the wall i used before if anyone is willing to help me or at least tell me where to start.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.
Didn't know you can do that.Why don't you just play on SAMP 0.3.7 R1 and use fake version r4.sf?