With this snippet we can get nick name.
Good luck...
Good luck...
Explain with 0.3.7 .:
PHP:
{$CLEO .cs}
0000:
repeat
wait 0
until 0afa:
WHILE TRUE
wait 0
call @Get_LocalPlayer_Name 0 0@
chatmsg "%s" -1 0@
END
:Get_LocalPlayer_Name
/// 0AB1: call_scm_func @Get_My_NickName 0 0@
0AA2: 0@ = loadLib "samp.dll" //samp base offset
0@ += 0x21A0F8
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stInfo
0@ += 0x3CD
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stPools
0@ += 0x18
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stPlayerPools
0@ += 0xA //szLocalPlayerName
0AB2: ret 1 0@
Snippets.:
0.3.7
PHP:
:Get_LocalPlayer_Name
/// 0AB1: call_scm_func @Get_LocalPlayer_Name 0 0@
0AA2: 0@ = loadLib "samp.dll" //samp base offset
0@ += 0x21A0F8
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stInfo
0@ += 0x3CD
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stPools
0@ += 0x18
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stPlayerPools
0@ += 0xA //szLocalPlayerName
0AB2: ret 1 0@
0.3.7
PHP:
:Get_LocalPlayer_ID
/// 0AB1: call_scm_func @Get_LocalPlayer_ID 0 0@
0AA2: 0@ = loadLib "samp.dll" //samp base offset
0@ += 0x21A0F8
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stInfo
0@ += 0x3CD
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stPools
0@ += 0x18
0A8D: 0@ = readmem 0@ sz 1 vp 0 //stPlayerPools
0@ += 0x4 //sLocalPlayerID
0AB2: ret 1 0@
0.3.7-R2
PHP:
:Get_LocalPlayer_Name
/// 0AB1: call_scm_func @Get_LocalPlayer_Name 0 0@
0AA2: 0@ = loadLib "samp.dll" //samp base offset
0@ += 0x21A100
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stInfo
0@ += 0x3C5
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stPools
0@ += 0x8
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stPlayerPools
0@ += 0x6 //szLocalPlayerName
0AB2: ret 1 0@
0.3.7-R2
PHP:
:Get_LocalPlayer_ID
/// 0AB1: call_scm_func @Get_LocalPlayer_ID 0 0@
0AA2: 0@ = loadLib "samp.dll" //samp base offset
0@ += 0x21A100
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stInfo
0@ += 0x3C5
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stPools
0@ += 0x8
0A8D: 0@ = readmem 0@ sz 1 vp 0 //stPlayerPools
0@ += 0x0 //sLocalPlayerID
0AB2: ret 1 0@
0.3.7-R3
PHP:
:Get_LocalPlayer_Name
/// 0AB1: call_scm_func @Get_LocalPlayer_Name 0 0@
0AA2: 0@ = loadLib "samp.dll" //samp base offset
0@ += 0x26E8DC
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stInfo
0@ += 0x3DE
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stPools
0@ += 0x8
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stPlayerPools
0@ += 0x2F22 //szLocalPlayerName
0AB2: ret 1 0@
0.3.7-R3
PHP:
:Get_LocalPlayer_ID
/// 0AB1: call_scm_func @Get_LocalPlayer_ID 0 0@
0AA2: 0@ = loadLib "samp.dll" //samp base offset
0@ += 0x26E8DC
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stInfo
0@ += 0x3DE
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stPools
0@ += 0x8
0A8D: 0@ = readmem 0@ sz 1 vp 0 //stPlayerPools
0@ += 0x2F1C //sLocalPlayerID
0AB2: ret 1 0@
0.3.7-R4
PHP:
:Get_LocalPlayer_Name
/// 0AB1: call_scm_func @Get_LocalPlayer_Name 0 0@
0AA2: 0@ = loadLib "samp.dll" //samp base offset
0@ += 0x26EA0C
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stInfo
0@ += 0x3DE
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stPools
0@ += 0x8
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stPlayerPools
0@ += 0x12 //szLocalPlayerName
0AB2: ret 1 0@
0.3.7-R4
PHP:
:Get_LocalPlayer_ID
/// 0AB1: call_scm_func @Get_LocalPlayer_ID 0 0@
0AA2: 0@ = loadLib "samp.dll" //samp base offset
0@ += 0x26EA0C
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stInfo
0@ += 0x3DE
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stPools
0@ += 0x8
0A8D: 0@ = readmem 0@ sz 1 vp 0 //stPlayerPools
0@ += 0xC //sLocalPlayerID
0AB2: ret 1 0@
0.3.DL
PHP:
:Get_LocalPlayer_Name
/// 0AB1: call_scm_func @Get_LocalPlayer_ID 0 0@
0AA2: 0@ = loadLib "samp.dll" //samp base offset
0@ += 0x2ACA24
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stInfo
0@ += 0x3DE
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stPools
0@ += 0x8
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stPlayerPools
0@ += 0x6 //szLocalPlayerName
0AB2: ret 1 0@
0.3.DL
PHP:
:Get_LocalPlayer_ID
/// 0AB1: call_scm_func @Get_LocalPlayer_Name 0 0@
0AA2: 0@ = loadLib "samp.dll" //samp base offset
0@ += 0x2ACA24
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stInfo
0@ += 0x3DE
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stPools
0@ += 0x8
0A8D: 0@ = readmem 0@ sz 1 vp 0 //stPlayerPools
0@ += 0x0 //sLocalPlayerID
0AB2: ret 1 0@
Last edited: