{$CLEO .cs}
0000:
wait 10000
while true
wait 0
if
0AB1: @isDialogOpen 0
then
0AB1: @GetDialogCaption 0 0@
0AD1: "%s" 2000 0@
end
end
:isDialogOpen
{
0.3.DL
}
0AA2: 1@ = "samp.dll"
1@ += 0x2AC9E0
0A8D: 1@ = readMem 1@ sz 4 vp 0
0A8E: 2@ = 1@ + 0x28 //DialogOpenOffset
0A8D: 2@ = readMem 2@ sz 4 vp 0
if 2@ == 1 // Dialog open
then
0485: dialog_open
else
059A: dialog closed
end
0AB2: ret 0
:GetDialogCaption
{
0.3.DL
}
0AA2: 1@ = "samp.dll"
1@ += 0x2AC9E0
0A8D: 1@ = readMem 1@ sz 4 vp 0
1@ += 0x40
0A8D: 1@ = readMem 1@ sz 4 vp 0
0AB2: ret 1 1@