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 >>
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 >>