CLEO Help How I Can Close Chat With 0AB1?

CLEO related

Bloodriver the Conqueror

Active member
Joined
Mar 23, 2020
Messages
65
Reaction score
13
Location
Turkey
hi, there's a cleo call code that i can use when the chat is open for samp, made by parazitas. i want to use it when the chat is off. how do i use it? code;

:isChatOpen
//0AB1: @isChatOpen 0
0AA2: 1@ = "samp.dll"
1@ += 0x2ACA14
0A8D: 1@ = readMem 1@ sz 4 vp 0
1@ += 0x14E0
0A8D: 1@ = readMem 1@ sz 4 vp 0
if 1@ <> 0
then
0485: chat_open
else
059A: chat_closed
end
0AB2: ret 0
 

ajom

Well-known member
Joined
Apr 14, 2020
Messages
389
Solutions
2
Reaction score
268
Location
Pluto
It is a Boolean Snippet:
Code:
{$CLEO}
0000: test script

while true
 Wait 0
 If 0AB1: @isChatOpen 0
 Then 0ACD: show_text_highpriority "Chat was Opened" time 200
   // Add something that will happen when the chat it opened here
 Else
  0ACD: show_text_highpriority "Chat was Closed" time 200
  // Add something that will happen when the chat it closed here
 End
End

You can do it like this:
Code:
{$CLEO}
0000: test script

while true
 Wait 0
 If 0AB1: @isChatOpen 0
 Then // do nothing
 Else
   0ACD: show_text_highpriority "Chat was Closed" time 200
   // Add something that will happen when the script it closed here
  //
  //
 End
End
 
Top