CLEO Help [REQ] Help to fix it..

CLEO related
Status
Not open for further replies.

GoodMan

Active member
Joined
Jun 4, 2014
Messages
141
Reaction score
0
Hello :/

Since samp 0.3z i can't use anymore some of the best cleos most needed :s

So i wonder if someone of you guys could please release a version of this but working on SA:MP 0.3z R2 :)

What this one does is Hide the Main-chat.. it worked for R1 but not anymore for R2 :S
{$CLEO .cs}

0000: NOP

while true
wait 1300
0AB1: @HideSAMPChat 1 TRUE
end

:HideSAMPChat
0AA2:1@ = load_library "samp.dll" // IF and SET
1@ += 0x7A710
if
0@ == true
then
    0A8C: write_memory 1@ size 1 value 0xC3 virtual_protect 1
else
    0A8C: write_memory 1@ size 1 value 0x56 virtual_protect 1
end
0AB2: 0

This other hides the Killtable (killfeed or kill list shown in the right of the screen)
{$CLEO .cs}

0000: NOP

while true
wait 1300
0AB1: @HideSAMPKillList 1 TRUE
end

:HideSAMPKillList
0AA2:2@ = load_library "samp.dll" // IF and SET
2@ += 0x212A74
0A8D: 1@ = read_memory 2@ size 4 virtual_protect 0
if
0@ == true
then
    0A8C: write_memory 1@ size 1 value 0 virtual_protect 0
else
    0A8C: write_memory 1@ size 1 value 1 virtual_protect 0
end
0AB2: 0

If someone of you guys could please fix it, know that you will make someone happy :)

Both of them are made to work without sampfuncs, if possible to make both of them on only 1 cleo file together please do :)
Thanks

(I'm not sure if this is correct section, if not, please move this thread)
 

pepeelpubero

Well-known member
Joined
Jan 21, 2014
Messages
433
Reaction score
1
That change to R2, has changed some memory address, i don't know how to find them so thanks to povargek for the s0beit source, i take the memory address from that but i'm not sure if it's SAMP_CHAT_INPUT_INFO_OFFSET or SAMP_CHAT_INFO_OFFSET, i used SAMP_CHAT_INFO_OFFSET.

Try it and tell me if it works or not.
 

Attachments

  • hidechatnkill.cs
    18 KB · Views: 30

GoodMan

Active member
Joined
Jun 4, 2014
Messages
141
Reaction score
0
Hello,

It works well, hides the chat and the killList, but also it hide/block the chat bar to type or do any cmd.
When i use it, it blocks the chat bar, i can not chat nor type any cmd or type anything, because it blocks it ;s

I tried myself to make it ON/OF with this:
{$CLEO .cs}

0000: NOP

:START
wait 0
if
0ADC: "8" 
jf @MAIN
if
31@ == 0 // ITS OFF
then
31@ = 1 // ENABLE IT
018C: play_sound 1083 at 0.0 0.0 0.0
0ACD: show_text_highpriority "HIDE CHAT ON" time 1337 // ON MESSAGE
wait 200
else
31@ = 0 // TURN IT OFF
018C: play_sound 1084 at 0.0 0.0 0.0     
0ACD: show_text_highpriority "HIDE CHAT OFF" time 1337 // OFF MESSAGE
0AB1: @HideSAMPChat 1 FALSE
wait 200
end

:MAIN
wait 0
if
31@ == 1 // on
jf @START
0AB1: @HideSAMPChat 1 TRUE
jump @START

:HideSAMPChat
0AA2:1@ = load_library "samp.dll" // IF and SET
1@ += 0x212AA4
if
0@ == TRUE
then
    0A8C: write_memory 1@ size 1 value 0xC3 virtual_protect 1
else
    0A8C: write_memory 1@ size 1 value 0x56 virtual_protect 1
end
0AB2: 0

I replaced
1@ += 0x7A710 to this 1@ += 0x212AA4

So i logged in a server and i turned it ON, when i wanted to turn OFF it just didn't do anything, it said hide chat OFF but nothing happened, the chat didn't came back.

I am not a cleo scripter, nor a strong hacker but i believe it is crypted or something but i can't edit ;/

Can yourself make a ON/OFF version with NUM8 incluiding chat and kill list?  :watchout:

Please, thanks  :forever_hurra:
 

pepeelpubero

Well-known member
Joined
Jan 21, 2014
Messages
433
Reaction score
1
All of that is fine, the problem is I don't know how to find that memory address to make it work well, so the problem is here: (you must change that 0x56 with something which i don't know, also there must be a problem with 0x212AA4)

if
0@ == TRUE
then // IF IT'S ON THEN WRITE MEMORY VALUE 0xC3
    0A8C: write_memory 1@ size 1 value 0xC3 virtual_protect 1
else // IF IT ISN'T ON THEN WRITE MEMORY VALUE 0x56
    0A8C: write_memory 1@ size 1 value 0x56 virtual_protect 1
end

So wait for springfield, opcode, thermal, or somebody who knows how to use it.
 

GoodMan

Active member
Joined
Jun 4, 2014
Messages
141
Reaction score
0
Old thread, if someone found the address, let us know thanks.



Bumping it :bawww:



///EDIT: Springfield address works now in 0.3z R2. Thanks for your time senior! :urtheman:
30/11/2014

Thread can be locked now.. thanks :)
 

0B36

Expert
Joined
Jan 6, 2014
Messages
1,324
Reaction score
8
You can find memory addresses with IDA PRO software. Download and install and then do it yourself.
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
Code:
:HideSAMPChat
0AA2:1@ = load_library "samp.dll" // IF and SET
1@ += 0x61CD0 
if
0@ == TRUE
then
    0A8C: write_memory 1@ size 1 value 0xC3 virtual_protect 1
else
    0A8C: write_memory 1@ size 1 value 0x56 virtual_protect 1
end
0AB2: 0

CChatWindow::Render        0x61CD0 //R2
 

Crayder

Active member
Joined
Mar 6, 2014
Messages
148
Reaction score
0
springfield link said:
Code:
:HideSAMPChat
0AA2:1@ = load_library "samp.dll" // IF and SET
1@ += 0x61CD0 
if
0@ == TRUE
then
    0A8C: write_memory 1@ size 1 value 0xC3 virtual_protect 1
else
    0A8C: write_memory 1@ size 1 value 0x56 virtual_protect 1
end
0AB2: 0

CChatWindow::Render        0x61CD0 //R2

Wait, what about the kill list...
 
Status
Not open for further replies.
Top