CLEO Help Get player's name via actor's handle

CLEO related
Status
Not open for further replies.

mpol77

Active member
Joined
Oct 24, 2018
Messages
66
Reaction score
6
0AA2: 0@ = loadLib "samp.dll" //samp base offset
0@ += 0x212A80
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stInfo
0@ += 0x3D9
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stPools
0@ += 0x14
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stPlayerPools
0@ += 0x0A //szLocalPlayerName

that's for the LOCAL player, now how to compare with an == operator to check if the actor's handle is the one you're viewing in the memory?
like 31@ == 1@ and then you read this specific part to get his name?

with SAMPFUNCS we had this:
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@

but now its gone so >>
 
Status
Not open for further replies.
Top