Помогите со скриптом

Статус
В этой теме нельзя размещать новые ответы.

kibernetshow

Участник
Автор темы
133
16
У меня есть скрипт который позволяет не падать с мотоцикла. Как мне сделать так, чтобы его активация производилась через кнопку?
CLEO:
{$CLEO .cs}

//-------------MAIN---------------
thread "Xare_Padat_S_Baika"

:Xare_Padat_S_Baika_22
wait 0
if
  Player.Defined($PLAYER_CHAR)
else_jump @Xare_Padat_S_Baika_22
wait 0
08C6: set_actor $PLAYER_ACTOR stay_on_bike 1
wait 0
0A93: end_custom_thread
 
Решение
@kibernetshow
CLEO:
{$CLEO}
0000:

repeat
wait 0
until Samp.Available()
0@ = 0

while true
wait 0
    if and 
    8B21: samp is_chat_opened
    Player.Defined($PLAYER_CHAR)
    0ADC:   test_cheat "1" // Можешь менять  то что  в  кавычках. Вводится чит-кодом
    then
    0B12: 0@ = 0@ XOR 1
        if 0@ == 1
        then
        08C6: set_actor $PLAYER_ACTOR stay_on_bike 1
        0AD1: show_formatted_text_highpriority "Stay on Bike ~g~Enabled" time 900
        else
        08C6: set_actor $PLAYER_ACTOR stay_on_bike 0
        0AD1: show_formatted_text_highpriority "Stay on Bike ~r~Disabled" time 900
        end
    end
end

D3.Pheonix

🎹
Модератор
2,813
1,592
@kibernetshow
CLEO:
{$CLEO}
0000:

repeat
wait 0
until Samp.Available()
0@ = 0

while true
wait 0
    if and 
    8B21: samp is_chat_opened
    Player.Defined($PLAYER_CHAR)
    0ADC:   test_cheat "1" // Можешь менять  то что  в  кавычках. Вводится чит-кодом
    then
    0B12: 0@ = 0@ XOR 1
        if 0@ == 1
        then
        08C6: set_actor $PLAYER_ACTOR stay_on_bike 1
        0AD1: show_formatted_text_highpriority "Stay on Bike ~g~Enabled" time 900
        else
        08C6: set_actor $PLAYER_ACTOR stay_on_bike 0
        0AD1: show_formatted_text_highpriority "Stay on Bike ~r~Disabled" time 900
        end
    end
end
 
  • Нравится
Реакции: kibernetshow
Статус
В этой теме нельзя размещать новые ответы.