Вопросы по CLEO-скриптингу

diva

Известный
248
44
i don't know why when i type nodie cleo mod is activate but when i have in game 50hp i dont auto-disconnect and reconnect in game just die and respawn without gun ? please help here code

CLEO:
0000:
0662: printstring "Made by Noob213"
0662: printstring "For ugbase.eu"
0@ = 0

var
4@: int
5@: int
end // var

while not samp.Available()
wait 400
end

while true
    wait 0
    if
    0ADC:   test_cheat "nodie"
    then
        if
        0@ == 0
        then
            0@ = 1
            0AD1: show_formatted_text_highpriority "~g~NODIE ON" time 1500
            wait 200
        else
            0@ = 0
            0AD1: show_formatted_text_highpriority "~r~NODIE OFF" time 1500
            wait 200
        end
    end
        if
        0@ == 1
        then
            0AF0: 5@ = get_int_from_ini_file "cleo\10hp-d.ini" section "Settings" key "HP"
            0226: 4@ = actor $PLAYER_ACTOR health   
        if
        4@ <= 5@
        then
            0B28: samp disconnect_with_reason 0
            wait 2500
            0223: set_actor $PLAYER_ACTOR health_to 100
            wait 1000
            0B27: samp set_gamestate 1
            end
        end
 
Последнее редактирование модератором:

deStrange

умер
409
159
Maybe anticheat. Can not .ini file. Maybe 0B28: samp disconnect_with_reason 0 . I do not know.
most likely I think that this is anticheat.
 
  • Нравится
Реакции: JEEMBО

_JeT_

Новичок
24
0
Как сделать диалог, с не ограниченым кол-в символов?
Помню что там hex и 00 00. А нормального объяснения не нашёл.
 
1,417
1,029
Как сделать диалог, с не ограниченым кол-в символов?
Помню что там hex и 00 00. А нормального объяснения не нашёл.
CLEO:
:cmd
0AC6: 0@ = label @label offset
0B3B: samp show_dialog id 50 caption "Caption" text 0@ button_1 "Exit" button_2 "" style 0
0B43: samp cmd_ret

:label
hex
"1123\n"
"13131\n"
...
"Last\0"
end