- 36
- 5
Привет, я полный новичок в клео, если у вас потечёт кровь из глаз видя мой код, то извиняюсь.
Я написал код где есть диалогове окно с кнопками куда телепортировать игрока, и когда я нажимаю какую-то кнопку, она срабатывает не всегда, обычно нужно тыкать по 100 раз и ждать пока сработает.
Активация как чит код 90 если что
Вот мой код
Я написал код где есть диалогове окно с кнопками куда телепортировать игрока, и когда я нажимаю какую-то кнопку, она срабатывает не всегда, обычно нужно тыкать по 100 раз и ждать пока сработает.
Активация как чит код 90 если что
Вот мой код
CLEO:
{$CLEO}
{$NOSOURCE}
{$USE SF}
0000:
repeat
wait 0
until SAMP.Available()
while true
wait 0
0B80: dialog 0@ = create "Teleport Menu"
0B84: dialog 0@ set_pos_XY 1080 540 size 240 350
0B93: dialog 0@ set_background_color 0xFFFFFF
0B82: dialog 0@ add_button id 1 text "CityHall" pos_XY 10 10 size 100 30
0B82: dialog 0@ add_button id 2 text "Hospital" pos_XY 10 40 size 100 30
0B82: dialog 0@ add_button id 3 text "Bus Station" pos_XY 10 70 size 100 30
0B82: dialog 0@ add_button id 4 text "Taxi Park" pos_XY 10 100 size 100 30
0B82: dialog 0@ add_button id 5 text "Ghetto" pos_XY 10 130 size 100 30
0B82: dialog 0@ add_button id 6 text "Grove Street" pos_XY 10 160 size 100 30
0B82: dialog 0@ add_button id 7 text "Ballas" pos_XY 10 190 size 100 30
0B82: dialog 0@ add_button id 8 text "Aztecas" pos_XY 10 220 size 100 30
0B82: dialog 0@ add_button id 9 text "Rifa" pos_XY 10 250 size 100 30
0B82: dialog 0@ add_button id 10 text "Vagos" pos_XY 10 280 size 100 30
0B82: dialog 0@ add_button id 11 text "Truckers" pos_XY 130 10 size 100 30
0B82: dialog 0@ add_button id 12 text "Lumberjack" pos_XY 130 40 size 100 30
0B82: dialog 0@ add_button id 13 text "Miner" pos_XY 130 70 size 100 30
0B82: dialog 0@ add_button id 14 text "Pizza" pos_XY 130 100 size 100 30
0B82: dialog 0@ add_button id 15 text "El Corona" pos_XY 130 130 size 100 30
0B82: dialog 0@ add_button id 16 text "Willowfield" pos_XY 130 160 size 100 30
0B82: dialog 0@ add_button id 17 text "Seville" pos_XY 130 190 size 100 30
0B82: dialog 0@ add_button id 18 text "Jefferson" pos_XY 130 220 size 100 30
0B82: dialog 0@ add_button id 19 text "Idlewood" pos_XY 130 250 size 100 30
0B82: dialog 0@ add_button id 20 text "Skatepark" pos_XY 130 280 size 100 30
0B86: dialog 0@ set_visible 0
:OpenDialog
wait 0
0ADC: test_cheat "90"
jf @OpenDialog
0B86: dialog 0@ set_visible 1
0B5D: samp toggle_cursor 1
:CityHall
wait 0
0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
2@ == 1
jf @Hospital
00A1: put_actor $PLAYER_ACTOR at 1481.38 -1739.04 13.55
018C: play_sound 1052 at 0.0 0.0 0.0
0B86: dialog 0@ set_visible 0
0B5D: samp toggle_cursor 0
jump @OpenDialog
:Hospital
wait 0
0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
2@ == 2
jf @BusStation
00A1: put_actor $PLAYER_ACTOR at 1188.83 -1324.00 13.57
018C: play_sound 1052 at 0.0 0.0 0.0
0B86: dialog 0@ set_visible 0
0B5D: samp toggle_cursor 0
jump @OpenDialog
:BusStation
wait 0
0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
2@ == 3
jf @TaxiPark
00A1: put_actor $PLAYER_ACTOR at 1124.46 -1748.22 13.57
018C: play_sound 1052 at 0.0 0.0 0.0
0B86: dialog 0@ set_visible 0
0B5D: samp toggle_cursor 0
jump @OpenDialog
:TaxiPark
wait 0
0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
2@ == 4
jf @Ghetto
00A1: put_actor $PLAYER_ACTOR at 1766.91 -1895.63 13.56
018C: play_sound 1052 at 0.0 0.0 0.0
0B86: dialog 0@ set_visible 0
0B5D: samp toggle_cursor 0
jump @OpenDialog
:Ghetto
wait 0
0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
2@ == 5
jf @GroveStreet
00A1: put_actor $PLAYER_ACTOR at 2198.06 -1671.99 14.47
018C: play_sound 1052 at 0.0 0.0 0.0
0B86: dialog 0@ set_visible 0
0B5D: samp toggle_cursor 0
jump @OpenDialog
:GroveStreet
wait 0
0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
2@ == 6
jf @Ballas
00A1: put_actor $PLAYER_ACTOR at 2491.78 -1666.51 13.34
018C: play_sound 1052 at 0.0 0.0 0.0
0B86: dialog 0@ set_visible 0
0B5D: samp toggle_cursor 0
jump @OpenDialog
:Ballas
wait 0
0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
2@ == 7
jf @Aztecas
00A1: put_actor $PLAYER_ACTOR at 1970.99 -1137.52 25.80
018C: play_sound 1052 at 0.0 0.0 0.0
0B86: dialog 0@ set_visible 0
0B5D: samp toggle_cursor 0
jump @OpenDialog
:Aztecas
wait 0
0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
2@ == 8
jf @Rifa
00A1: put_actor $PLAYER_ACTOR at 1682.24 -2113.02 13.38
018C: play_sound 1052 at 0.0 0.0 0.0
0B86: dialog 0@ set_visible 0
0B5D: samp toggle_cursor 0
jump @OpenDialog
:Rifa
wait 0
0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
2@ == 9
jf @Vagos
00A1: put_actor $PLAYER_ACTOR at 2169.04 -1799.68 13.37
018C: play_sound 1052 at 0.0 0.0 0.0
0B86: dialog 0@ set_visible 0
0B5D: samp toggle_cursor 0
jump @OpenDialog
:Vagos
wait 0
0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
2@ == 10
jf @Truckers
00A1: put_actor $PLAYER_ACTOR at 2784.30 -1611.91 10.92
018C: play_sound 1052 at 0.0 0.0 0.0
0B86: dialog 0@ set_visible 0
0B5D: samp toggle_cursor 0
jump @OpenDialog
:Truckers
wait 0
0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
2@ == 11
jf @Lumberjack
00A1: put_actor $PLAYER_ACTOR at 1982.15 -1964.48 16.69
018C: play_sound 1052 at 0.0 0.0 0.0
0B86: dialog 0@ set_visible 0
0B5D: samp toggle_cursor 0
jump @OpenDialog
:Lumberjack
wait 0
0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
2@ == 12
jf @Miner
00A1: put_actor $PLAYER_ACTOR at -525.02 -176.01 78.28
018C: play_sound 1052 at 0.0 0.0 0.0
0B86: dialog 0@ set_visible 0
0B5D: samp toggle_cursor 0
jump @OpenDialog
:Miner
wait 0
0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
2@ == 13
jf @Pizza
00A1: put_actor $PLAYER_ACTOR at -1861.35 -1646.01 24.68
018C: play_sound 1052 at 0.0 0.0 0.0
0B86: dialog 0@ set_visible 0
0B5D: samp toggle_cursor 0
jump @OpenDialog
:Pizza
wait 0
0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
2@ == 14
jf @ElCorona
00A1: put_actor $PLAYER_ACTOR at 953.93 -1389.33 13.39
018C: play_sound 1052 at 0.0 0.0 0.0
0B86: dialog 0@ set_visible 0
0B5D: samp toggle_cursor 0
jump @OpenDialog
:ElCorona
wait 0
0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
2@ == 15
jf @Willowfield
00A1: put_actor $PLAYER_ACTOR at 1961.59 -2076.70 13.38
018C: play_sound 1052 at 0.0 0.0 0.0
0B86: dialog 0@ set_visible 0
0B5D: samp toggle_cursor 0
jump @OpenDialog
:Willowfield
wait 0
0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
2@ == 16
jf @Seville
00A1: put_actor $PLAYER_ACTOR at 2412.27 -2010.02 13.39
018C: play_sound 1052 at 0.0 0.0 0.0
0B86: dialog 0@ set_visible 0
0B5D: samp toggle_cursor 0
jump @OpenDialog
:Seville
wait 0
0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
2@ == 17
jf @Jefferson
00A1: put_actor $PLAYER_ACTOR at 2712.93 -2002.32 13.39
018C: play_sound 1052 at 0.0 0.0 0.0
0B86: dialog 0@ set_visible 0
0B5D: samp toggle_cursor 0
jump @OpenDialog
:Jefferson
wait 0
0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
2@ == 18
jf @Idlewood
00A1: put_actor $PLAYER_ACTOR at 2174.74 -1221.03 23.83
018C: play_sound 1052 at 0.0 0.0 0.0
0B86: dialog 0@ set_visible 0
0B5D: samp toggle_cursor 0
jump @OpenDialog
:Idlewood
wait 0
0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
2@ == 19
jf @Skatepark
00A1: put_actor $PLAYER_ACTOR at 2082.17 -1786.24 13.38
018C: play_sound 1052 at 0.0 0.0 0.0
0B86: dialog 0@ set_visible 0
0B5D: samp toggle_cursor 0
jump @OpenDialog
:Skatepark
wait 0
0B81: dialog 0@ pop_event_to 1@ control_id_to 2@
2@ == 20
jf @CityHall
00A1: put_actor $PLAYER_ACTOR at 1911.52 -1406.33 13.57
018C: play_sound 1052 at 0.0 0.0 0.0
0B86: dialog 0@ set_visible 0
0B5D: samp toggle_cursor 0
jump @OpenDialog