E erichoward Member Joined Dec 9, 2019 Messages 15 Reaction score 0 Location egypt Mar 7, 2020 #1 how to get my player's ID?
_Safa Well-known member Joined Sep 22, 2019 Messages 297 Reaction score 103 Location UGBASE Mar 7, 2020 #2 0B2B: samp $yourID = get_player_id_by_actor_handle $PLAYER_ACTOR Upvote 0 Downvote
_Safa Well-known member Joined Sep 22, 2019 Messages 297 Reaction score 103 Location UGBASE Mar 7, 2020 #3 That opcode above was for SAMPFUNCS. If you aren't using SF you can read memory to get your localPlayerID: samp.dll + 0x21A0F8 (SAMP_INFO_OFFSET) + 0x3CD (stSAMPPools) + 0x18 (stPlayerPool) + 0x4 (LocalPlayerID Offset). Upvote 0 Downvote
That opcode above was for SAMPFUNCS. If you aren't using SF you can read memory to get your localPlayerID: samp.dll + 0x21A0F8 (SAMP_INFO_OFFSET) + 0x3CD (stSAMPPools) + 0x18 (stPlayerPool) + 0x4 (LocalPlayerID Offset).
E erichoward Member Joined Dec 9, 2019 Messages 15 Reaction score 0 Location egypt Mar 8, 2020 #4 How to get player's name via id? Upvote 0 Downvote
_Safa Well-known member Joined Sep 22, 2019 Messages 297 Reaction score 103 Location UGBASE Mar 8, 2020 #5 0B36: samp 0@ = get_player_nickname [ID] Upvote 0 Downvote