CLEO [Tutorial] Find SA:MP pointers

shanker

Well-Known Member
Joined
Sep 18, 2016
Messages
292
Likes
19
Points
48
Location
Romania
#41
@Parazitas,

Nvm, I found what I needed!

0.3.7 R1 static addreses:

1. LocalPlayer Name: "samp.dll" + 0x13D190, Offset: 0xA
2. ServerName: "samp.dll" + 0x21A0F8, Offset: 0x121
 
Last edited:
OP
OP
Parazitas

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
2,143
Likes
385
Points
113
Location
Lithuania
Website
ugbase.eu
20
#42
@Parazitas,

Nvm, I found what I needed!

0.3.7 R1 static addreses:

1. LocalPlayer Name: "samp.dll" + 0x13D190, Offset: 0xA
2. ServerName: "samp.dll" + 0x21A0F8, Offset: 0x121
This two you can find very easy way, just scan like string.
Also you can get ip and port which is stored like string in cheat engine
 
Last edited:
OP
OP
Parazitas

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
2,143
Likes
385
Points
113
Location
Lithuania
Website
ugbase.eu
20
#44
How did you get textdraw id, i am on 0.3.dl

PHP:
{$CLEO .cs}

0000: NOP

wait 10000

while true
wait 0

for [email protected] = 0 to 2304
if
0AB1: @IsSampTextDrawExist 1 [email protected]
then
    wait 1500
    0AB1: @HideSampTextDraw 1 [email protected]
    0AD1: show_formatted_text_highpriority "Hided Textdraw ID %d" time 1000 [email protected]
end
end

end

:IsSampTextDrawExist
{
    0.3.DL
}
0AA2: [email protected] = load_library "samp.dll"
[email protected] += 0x2ACA24
0A8D: [email protected] readMem [email protected] sz 4 vp 0
[email protected] += 0x4
0A8D: [email protected] readMem [email protected] sz 4 vp 0
[email protected] += 0x1B8
0A8D: [email protected] readMem [email protected] sz 4 vp 0
[email protected] *= 0x4
005A: [email protected] += [email protected]
0A8D: [email protected] readMem [email protected] sz 4 vp 0
if
[email protected] == 1
then
    0485:  return_true
else
    059A:  return_false
end
0AB2: 0

:HideSampTextDraw
{
    0.3.DL
}
0AA2: [email protected] = load_library "samp.dll"
[email protected] += 0x2ACA24
0A8D: [email protected] readMem [email protected] sz 4 vp 0
[email protected] += 0x4
0A8D: [email protected] readMem [email protected] sz 4 vp 0
[email protected] += 0x1B8
0A8D: [email protected] readMem [email protected] sz 4 vp 0
[email protected] *= 0x4
005A: [email protected] += [email protected]
0A8C: writeMem [email protected] sz 4 vl 0 vp 0
0AB2: 0
 
OP
OP
Parazitas

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
2,143
Likes
385
Points
113
Location
Lithuania
Website
ugbase.eu
20
#45
Added tutorial - How get chat or dialog editbox text .
More videos can find in the channel.

Example
PHP:
:GetDialogInputEditBoxText
{
    0.3.7 - R1
    0AB1: @GetDialogInputText 0 _Return: [email protected]
}
if 0AA2: [email protected] = "samp.dll"
then
    0A8E: [email protected] = [email protected] + 0x21A0B8            // SAMP_DIALOG_INFO_OFFSET (R1)
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     // pDialog;
    0A8E: [email protected] = [email protected] + 0x24                // pDialog->pEditBox;
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     // pEditBox;
   
    0A8E: [email protected] = [email protected] + 0x81030 // CDXUTEditBox::GetText (offset for 0.3.7 R1)
   
    0AA8: call_function_method [email protected] struct [email protected] num_params 0 pop 0 _Return: [email protected]
end
0AB2: 1 [email protected]

:GetChatInputEditBoxText
{
    0.3.7 - R1
    0AB1: @GetChatInputEditBoxText 0 _Return: [email protected]
}
if 0AA2: [email protected] = "samp.dll"
then
    0A8E: [email protected] = [email protected] + 0x21A0E8            // SAMP_CHAT_INPUT_INFO_OFFSET (R1)
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     // pChatInput;
    0A8E: [email protected] = [email protected] + 0x8                // pChatInput->pEditBox;
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     // pEditBox;
   
    0A8E: [email protected] = [email protected] + 0x81030 // CDXUTEditBox::GetText (offset for 0.3.7 R1)
   
    0AA8: call_function_method [email protected] struct [email protected] num_params 0 pop 0  _Return: [email protected]
end
0AB2: 1 [email protected]
 
Last edited:
OP
OP
Parazitas

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
2,143
Likes
385
Points
113
Location
Lithuania
Website
ugbase.eu
20
#47
Get Chat String for 0.3.dl, and if you can actor_handle_by_samp_player_id
PHP:
:GetChatEntryText
{
    0AC8: [email protected] = allocate_memory_size 145
    0AB1: @getChatEntryText 1 id 99 to [email protected] 
    0.3.DL
} 
IF 0AA2: [email protected] = "samp.dll"
THEN
    [email protected] += 0x2ACA10
    0A8D: [email protected] readMem [email protected] sz 4 vp 0
    [email protected] += 0x132
    [email protected] *= 0xFC
    005A: [email protected] += [email protected]
    [email protected] += 0x20
    0AA3: [email protected]
END
0AB2: ret 1 [email protected]
 

Herka

New Member
Joined
Dec 23, 2018
Messages
4
Likes
0
Points
1
1
#49
Thanks !
Do you have ImgUI hook for 0.3dl please ?
I want to create new dialog style, client & server

thanks
 
Top