[Tutorial] Find SA:MP pointers

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
829
Likes
44
Points
43
Location
Lithuania
Website
ugbase.eu
10
#1
Find chat open detection pointer

Find dialog caption pointer


Find server name pointer

Find dialog open detection pointer


Find left / right button text pointer

Find dialog style / type pointer
https://youtu.be/RhAtBapjHAc

Find dialog list item pointer
https://youtu.be/9SiJuFUNovw
 
Last edited:

veysileth

Well-Known Member
Joined
Mar 23, 2017
Messages
86
Likes
5
Points
13
#3
Yo man, you know how to get ID of your character? I have tried to pick nickname/id but idk if it's even possible only with read memory.
 
OP
OP
Parazitas

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
829
Likes
44
Points
43
Location
Lithuania
Website
ugbase.eu
10
#7
Yo man, you know how to get ID of your character? I have tried to pick nickname/id but idk if it's even possible only with read memory.
Get nick name 0.3.DL
PHP:
samp.dll+2AC187
or
PHP:
:Get_LocalPlayer_Name
/// 0AB1: call_scm_func @Get_LocalPlayer_Name 0 [email protected]
0AA2: [email protected] = loadLib "samp.dll" //samp base offset           
[email protected] += 0x2ACA24
0A8D: [email protected] = readmem [email protected] sz 4 vp 0 //stInfo   
[email protected] += 0x3DE
0A8D: [email protected] = readmem [email protected] sz 4 vp 0 //stPools
[email protected] += 0x8
0A8D: [email protected] = readmem [email protected] sz 4 vp 0 //stPlayerPools
[email protected] += 0x6 //szLocalPlayerName
0AB2: ret 1 [email protected]
ID memory i try get later.., little busy.
 

veysileth

Well-Known Member
Joined
Mar 23, 2017
Messages
86
Likes
5
Points
13
#8
I understand, time is tight.
I have one stupid question tho... i get numbers and im a retard with memory. How to convert it to text?

PHP:
            player_nick = memory.read(handle + 0x2AC187, 256, false) --samp.dll+2AC187
            imgui.Text(tostring(player_nick)) --7955798

            ----------------------------------------------------------------------------

            player_nick = memory.read(handle + 0x2ACA24, 4, false)
            imgui.Text(tostring(player_nick)) --629570632

            player_nick = memory.read(player_nick + 0x3DE, 4, false)
            imgui.Text(tostring(player_nick)) --629589640

            player_nick = memory.read(player_nick + 0x8, 4, false)
            imgui.Text(tostring(player_nick)) --629725072

            player_nick = memory.read(player_nick + 0x6, 4, false)
            imgui.Text(tostring(player_nick)) --1634624844
because i can't use by example
memory.read(player_nick + 0x8, 'text' , false)
memory.read(player_nick + 0x8, 'string' , false)
memory.read(player_nick + 0x8, text , false)
memory.read(player_nick + 0x8, string , false)
etc. bold part


OK, me being stupid again. It's working, thanks man. And i got player ID.

PHP:
            player_nick_OOC = memory.tostring(handle + 0x2AC187, 256, false)
            imgui.Text(tostring(player_nick_OOC)) --On my server you can log in with forum nickname. So it's forum not in-game nickname. Cool.

            player_nick_IC = memory.read(handle + 0x2ACA24, 4, false)
            player_nick_IC = memory.read(player_nick_IC + 0x3DE, 4, false)
            player_nick_IC = memory.read(player_nick_IC + 0x8, 4, false)
            player_nick_IC = memory.tostring(player_nick_IC + 0x6, 256, false)
            imgui.Text(tostring(player_nick_IC))

            player_ID = memory.read(handle + 0x2ACA24, 4, false)
            player_ID = memory.read(player_ID + 0x3DE, 4, false)
            player_ID = memory.read(player_ID + 0x8, 4, false)
            player_ID = memory.read(player_ID + 0x0, 1, false)
            imgui.Text(tostring(player_ID))
 
Last edited:

.silent

Well-Known Member
Joined
Apr 14, 2013
Messages
337
Likes
14
Points
68
#9
Loool is much simpler way...just rename samp.dll to samp.asi and go CMD and write
Code:
more samp.asi
and you get all:

trust me, im well-known member
 
Joined
Jan 22, 2018
Messages
8
Likes
0
Points
1
Website
www.youtube.com
1
#15
i need help for finding player interior which is out of steam (not in freeroam) can you help it will be a great help

this dont work :(
077E: get_active_interior_to [email protected]
094B: v$ACTIVE_INTERIOR_NAME = get_active_interior_name_from_actor $PLAYER_ACTOR // 16-byte string
09E8: $GYMFIGHT_INTERIOR = actor $PLAYER_ACTOR active_interior

Thanks :) in Advance
 
OP
OP
Parazitas

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
829
Likes
44
Points
43
Location
Lithuania
Website
ugbase.eu
10
#16
i need help for finding player interior which is out of steam (not in freeroam) can you help it will be a great help

this dont work
077E: get_active_interior_to [email protected]
094B: v$ACTIVE_INTERIOR_NAME = get_active_interior_name_from_actor $PLAYER_ACTOR // 16-byte string
09E8: $GYMFIGHT_INTERIOR = actor $PLAYER_ACTOR active_interior

Thanks in Advance
Memory return interior ID
0A8D: [email protected] = read_memory 0xA4ACE8 size 4 virtual_protect 0
 
OP
OP
Parazitas

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
829
Likes
44
Points
43
Location
Lithuania
Website
ugbase.eu
10
#17
Could you teach me how to get the memory address of NOP SetPlayerHealth in samp 0.3.7 r3?
Snippet return health and armour
PHP:
:Health_And_Armour
{
0AB1: @Health_And_Armour 0 [email protected] [email protected]
}
0A8D: [email protected] = read_memory 0xB6F5F0 size 4 virtual_protect 0
[email protected] += 540
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0
0A8D: [email protected] = read_memory 0xB6F5F0 size 4 virtual_protect 0
[email protected] += 548
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0
0AB2: ret 2 [email protected] [email protected]
 
Last edited:
Top