CLEO Help Snippet chatlog

CLEO related
Status
Not open for further replies.

Jik ke

Active member
Joined
Jun 2, 2021
Messages
43
Reaction score
2
Location
America
Hi guys, I'm here to ask for help. I need code snippet for cleo SAMP 0.3dl. The code shows the text on the chatlog when I enter the game (Like the image below shows the wallhack line when I first enter the game). Can you help me?
 

Attachments

  • IMG_20210603_121100.jpg
    IMG_20210603_121100.jpg
    16.4 KB · Views: 31

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
936
Location
Lithuania
PHP:
{$CLEO .cs}

0000:

REPEAT
WAIT 1000
    0A8D: 31@ = readMem 0xC8D4C0 sz 4 vp 0
UNTIL 31@ == 9 // SAMP_IS_READY

0AC8: 0@ = allocate_memory_size 128
0AD3: 0@ = format "hello world"
0AB1: @Chatmsg 2 color 0xFF00FF00 text 0@

WHILE TRUE
WAIT 0
END


:Chatmsg
//0AB1: @Chatmsg 2 $color $text
IF 0AA2: 2@ = "samp.dll"
THEN
    0085: 3@ = 2@
    3@ += 0x2ACA10 // SAMP_CHAT_INFO_OFFSET_03DL
    0A8D: 3@ = readMem 3@ sz 4 vp 1
    0085: 4@ = 2@
    4@ += 0x67650 // FUNC_ADDTOCHATWND_03DL  
    0AA6: call 4@ struct 3@ num_params 5 pop 0 params 0 0@ 0 1@ 8
END
0AB2: 0
 

Jik ke

Active member
Joined
Jun 2, 2021
Messages
43
Reaction score
2
Location
America
PHP:
{$CLEO .cs}

0000:

REPEAT
WAIT 1000
    0A8D: 31@ = readMem 0xC8D4C0 sz 4 vp 0
UNTIL 31@ == 9 // SAMP_IS_READY

0AC8: 0@ = allocate_memory_size 128
0AD3: 0@ = format "hello world"
0AB1: @Chatmsg 2 color 0xFF00FF00 text 0@

WHILE TRUE
WAIT 0
END


:Chatmsg
//0AB1: @Chatmsg 2 $color $text
IF 0AA2: 2@ = "samp.dll"
THEN
    0085: 3@ = 2@
    3@ += 0x2ACA10 // SAMP_CHAT_INFO_OFFSET_03DL
    0A8D: 3@ = readMem 3@ sz 4 vp 1
    0085: 4@ = 2@
    4@ += 0x67650 // FUNC_ADDTOCHATWND_03DL 
    0AA6: call 4@ struct 3@ num_params 5 pop 0 params 0 0@ 0 1@ 8
END
0AB2: 0
Thank you and you can now close this topic
 
Status
Not open for further replies.
Top