CLEO Help What these opcodes do?

CLEO related
Status
Not open for further replies.

Codex1337

Active member
Joined
Mar 1, 2014
Messages
170
Reaction score
1
Hi, what these opcodes do?

05E2: AS_actor 65@ kill_actor 50@
0806: get_player $PLAYER_CHAR kills_from_last_checkpoint 0@
0BB1: samp 0@ = get_kill_info_ptr

Thanks
 

Codex1337

Active member
Joined
Mar 1, 2014
Messages
170
Reaction score
1
Ok thanks springfield, can you please give me an example that how to use this opcode?

0BB1: samp 0@ = get_kill_info_ptr
 

Codex1337

Active member
Joined
Mar 1, 2014
Messages
170
Reaction score
1
springfield link said:
Just like that.
Now 0@ contains the pointer to kill info structure.
Here comes my another noobish question :S
Can i read kill list with it? if yes then how?
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
Code:
struct stKillInfo
{
#pragma pack( 1 )
int	iEnabled;
struct stKillEntry killEntry[5];
};
Code:
struct stKillEntry
{
#pragma pack( 1 )
char	szKiller[25];
char	szVictim[25];
D3DCOLOR clKillerColor;
D3DCOLOR clVictimColor;
uint8_t	byteType;
};

Taken from s0beit, so killPTR + 4 = szKiller, now read/copy this memory to another variable.
Notice there are 5 structures for each kill log line.
 
Status
Not open for further replies.
Top