It's for samp 0.3.7 R4?http://ugbase.eu/index.php?threads/snippet-is-chat-dialog-open.8121/
:isChatOpen
0AA2: 1@ = "samp.dll"
1@ += 0x2ACA24
0A8D: 1@ = readMem 1@ sz 4 vp 0
1@ += 8
0A8D: 1@ = readMem 1@ sz 4 vp 0
1@ += 4
0A8D: 1@ = readMem 1@ sz 1 vp 0
if
1@ <> 0
then
30@ = 1
else
30@ = 0
end
0AB2: ret 1 30@
i tried to edit this a bit with the right offsets, but it isn't working
it always return 1 for some reason
{$CLEO .cs}
0000:
wait 8500
while true
wait 0
if
0AB1: @isChatOpen 0
then
// do something..
end
end
:isChatOpen
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