CLEO const MAX_TEXTDRAW 2047 2048 end wait while not SAMP Available wa

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{$CLEO}
const
MAX_TEXTDRAW = 2047 // 2048
end
wait 0
while not SAMP.Available()
wait 400
end
0@ = Render.CreateFont("Helvetica", 10, 5)
1@ = Render.FontDrawHeight(0@)
SAMP.GetScreenResolution(2@, 3@)
2@ /= 2
3@ = 50
alloc 6@ 1024
while true
wait 0
8@ = 0 // total
for 4@ = 0 to MAX_TEXTDRAW step 1
call @get_td_pool_by_id 2 id 4@ offset 0x0 retr_to 5@
if 5@ == true
then
call @get_td_pool_by_id 2 id 4@ offset 0x2400 retr_to 5@
if 5@ <> 0
then
0A90: 7@ = 8@ * 1@
005a: 7@ += 3@
format 6@ = "%d -> %s" 4@ 5@
Render.DrawText(0@, 6@, 2@, 7@, -1)
8@++
end
end
end
end
:get_td_pool_by_id
var
0@ : int // id
1@ : int // offset
2@ : int
end
2@ = SAMP.Base()
2@ += 0x212A80
0A8D: 2@ = read_memory 2@ size 4 virtual_protect 0
2@ += 0x3D9
0A8D: 2@ = read_memory 2@ size 4 virtual_protect 0
0A8D: 2@ = read_memory 2@ size 4 virtual_protect 0
0@ *= 4
1@ += 0@
2@ += 1@
0A8D: 2@ = read_memory 2@ size 4 virtual_protect 0
ret 1 2@