CLEO Help [LOCK] Get player's nickname without SAMPFUNCS

CLEO related
Status
Not open for further replies.

iVilux

Well-known member
Joined
Nov 12, 2013
Messages
207
Reaction score
5
How can I get the player's nickname without SAMPFUNCS?

EDIT: Thanks to springfield for the help, you can lock the thread now.
 

0B36

Expert
Joined
Jan 6, 2014
Messages
1,324
Reaction score
8
Re: Get player's nickname without SAMPFUNCS

You can't. CLEO wasn't made for sa-mp and doesn't facilitate sa-mp opcodes, hence sampfuncs came into existence. Use 0B36, that's the only way you can get a player's nick.
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
Re: Get player's nickname without SAMPFUNCS

As explained above, cleo doesn't have any samp related opcodes, you can read players name/your name by reading from memory.
 

iVilux

Well-known member
Joined
Nov 12, 2013
Messages
207
Reaction score
5
Re: Get player's nickname without SAMPFUNCS

I know that CLEO wasn't made for SAMP. But if we can use it with a plugin, we must be able to use it without it. I just don't know the memory addresses.
 

0B36

Expert
Joined
Jan 6, 2014
Messages
1,324
Reaction score
8
Re: Get player's nickname without SAMPFUNCS

We can't. That's why FYP made sampfuncs. On another note, what's your issue with sampfuncs ? Why not just use that ?
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
Re: Get player's nickname without SAMPFUNCS

iVilux link said:
I know that CLEO wasn't made for SAMP. But if we can use it with a plugin, we must be able to use it without it. I just don't know the memory addresses.

You can look in s0beit source for addresses and structures.
 

iVilux

Well-known member
Joined
Nov 12, 2013
Messages
207
Reaction score
5
Re: Get player's nickname without SAMPFUNCS

springfield link said:
You can look in s0beit source for addresses and structures.
I'm searching in La Pirula source, which part should I search in?
 

iVilux

Well-known member
Joined
Nov 12, 2013
Messages
207
Reaction score
5
Re: Get player's nickname without SAMPFUNCS

No luck... I forgot to mention that I need to get my own nickname.
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
Re: Get player's nickname without SAMPFUNCS

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

iVilux

Well-known member
Joined
Nov 12, 2013
Messages
207
Reaction score
5
Re: Get player's nickname without SAMPFUNCS

springfield link said:
Really? C'mon dude. I forgot to add a =;

0@ += 0x0A
I tried that before, it crashed SAMP.

EDIT: Nevermind, works now for some reason. Thanks for the help! You can lock the thread now.
 
Status
Not open for further replies.
Top