I can't find anything what you did by yourself , it's look like you just take part code from some cleo's and put in this thread...
Big messy , unreadable clearly...
I have old code , maybe still working....
{$CLEO .cs}
0000:
REPEAT
WAIT 0
UNTIL 0AFA: SAMP_IS_READY
32@ = 0
WHILE TRUE...