{$CLEO .cs}
0000:
Thread "NarkoTimer"
repeat
wait 400
until 0AFA:
0B6D: render 0@ = create_font "Arial" height 11 flags 5
alloc 1@ 64
alloc 2@ 28
alloc 8@ 64
alloc 16@ 64
0B5A: get_screen_resolution 11@ 12@
11@ /= 2
12@ /= 2
11@ += 250
12@ += 250
while true
wait 0
repeat
wait 400
until 0B61: samp is_local_player_spawned
0B2B: samp 5@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0B36: samp 6@ = get_player_nickname 5@
0B75: samp get_chat_string 99 text_to 1@ prefix_to 2@ color_to 3@ prefix_color_to 4@
0AD3: 8@ = format "%s употребил(а) наркотик" 6@
if 0C18: 10@ = strstr string1 1@ string2 8@
then
03F0: enable_text_draw 1
13@ = 2
14@ = 0
while true
wait 0
if and
13@ == 0
14@ == 0
then
break
repeat
wait 150
until 13@ > 0
continue
end
if and
14@ >= 0
14@ < 10
then
15@ = 0
0AD3: 16@ = format "%d:%d%d" 13@ 15@ 14@
else
0AD3: 16@ = format "%d:%d" 13@ 14@
end
0B6F: render font 0@ draw_text 16@ pos 11@ 12@ color -1
while 17@ <= 100
wait 0
0B6F: render font 0@ draw_text 16@ pos 11@ 12@ color -1
17@++
end
17@ = 0
if 14@ == 0
then
13@--
14@ += 59
else
14@--
end
end
03F0: enable_text_draw 0
end
end