CLEO:
{$CLEO}
0000:
:SAMPAv
wait 0
0AFA: is_samp_available
jf @SAMPAv
0B80: dialog 0@ = create "MENU"
0B86: dialog 0@ set_visible 0
0B84: dialog 0@ set_pos_XY 500 500 size 300 225
0B82: dialog 0@ add_button id 1 text "0 hp" pos_XY 0 0 size 100 30
0B82: dialog 0@ add_button id 2 text "45 hp" pos_XY 0 25 size 100 30
0B82: dialog 0@ add_button id 3 text "100 hp" pos_XY 0 50 size 100 30
0B82: dialog 0@ add_button id 4 text "Text" pos_XY 0 75 size 100 30
:OnDialog
wait 0
0ADC: test_cheat "ON"
jf @OnDialog
0B86: dialog 0@ set_visible 1
0B8D: samp set_cursor_mode 2
// Тут код после включения диалога.
:OffDialog
wait 0
0ADC: test_cheat "OFF"
jf @OffDialog
0B86: dialog 0@ set_visible 0
0B8D: samp set_cursor_mode 0
jump @OnDialog