Помогите пофиксить скрипт. В общем, хочу сделать, чтобы при вводе команды появлялся render текст и, соответственно пропадал по команде.
Есть кривой набросок, помогите его сделать работоспособным:
{$CLEO}
thread 'blasthack'
repeat
wait 100
until SAMP.Available()
0B34: samp register_client_command "text" to_label @text_8
0B6D: render 12@ = create_font "The Godfather" height 40 flags 0x04 // shadow + border
0B6D: render 13@ = create_font "Lucida Console" height 20 flags 0x4 // nope
0B6D: render 14@ = create_font "Tahoma" height 20 flags 5 // shadow + border + italic + bold
while true
wait 0
if 1@ == 1
then
0B6E: render release_font 12@
0B6E: render release_font 13@
0B6E: render release_font 14@
0a93:
end
:text_8
03F0: enable_text_draw 1
0B5A: get_screen_resolution 20@ 21@
20@ /= 2
21@ /= 2
20@ -= 50
21@ -= 30
0B6F: render font 12@ draw_text "Project" pos 20@ 21@ color 0xFFFF3300
20@ += 30
21@ += 50
0B6F: render font 13@ draw_text "blasthack" pos 20@ 21@ color 0xFFFFCC33
21@ -= 70
0B6F: render font 14@ draw_text "the best" pos 20@ 21@ color 0xFFFF6600
0B12: 1@ = 1@ XOR 1
Samp.CmdRet()
end