Нужна помощь в .cs

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

VJVL

Новичок
Автор темы
26
0
Всем привет.

Вот cleo которое мне скинул ded, оно работает но большая задержка + надо поменять команды и кнопки.
Как только я меняю, компилирую, после этого меняются значения хз из-за чего
Как это исправить?

или переделайте мне его сами и киньте готовый :)

E - /knockout
Q - /cuff
R - /uncuff
1 - /take weapons
2 - /take drugs
3 - /take otmichka
Z - /klyap

Вот этот нормальный.
А вот код того, что получается после
Меняется else_jump, jump и что-то еще
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP
0662: printstring "Ded_Fedot"

:NONAME_15
wait 400
SAMP.Available
else_jump @NONAME_15

:NONAME_29
wait 0
1@ = SAMP.GetSAMPPlayerIDByActorHandle(0@)
if and
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
key_down 69
else_jump @NONAME_96
wait 666
say "/knockout %d" 1@
jump @NONAME_310

:NONAME_96
if and
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
key_down 81
else_jump @NONAME_147
wait 666
say "/cuff %d" 1@
jump @NONAME_310

:NONAME_147
if and
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
key_down 82
else_jump @NONAME_200
wait 666
say "/uncuff %d" 1@
jump @NONAME_310

:NONAME_200
if and
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
key_down 88
else_jump @NONAME_260
wait 666
say "/take otmichka %d" 1@
jump @NONAME_310

:NONAME_260
if and
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
key_down 67
else_jump @NONAME_310
wait 666
say "/take narko %d" 1@

:NONAME_310
jump @NONAME_29
 

Вложения

  • cops.cs
    317 байт · Просмотры: 17
Последнее редактирование модератором:

DarkP1xel

Сила воли наше всё.
BH Team
3,635
4,983
CLEO:
{$CLEO}
0000:

REPEAT
0001: WAIT 0 MS
UNTIL 0AFA:

WHILE TRUE
0001: WAIT 0 MS
    IF 0C89:  key_just_pressed {E}0x45
    THEN 0C8F: samp process_chat_input "/knockout"
    ELSE
        IF 0C89:  key_just_pressed {Q}0x51
        THEN 0C8F: samp process_chat_input "/cuff"
        ELSE
            IF 0C89:  key_just_pressed {R}0x52
            THEN 0C8F: samp process_chat_input "/uncuff"
            ELSE
                IF 0C89:  key_just_pressed {1}0x31
                THEN 0C8F: samp process_chat_input "/take weapons"
                ELSE
                    IF 0C89:  key_just_pressed {2}0x32
                    THEN 0C8F: samp process_chat_input "/take drugs"
                    ELSE
                        IF 0C89:  key_just_pressed {3}0x33
                        THEN 0C8F: samp process_chat_input "/take otmichka"
                        ELSE
                            IF 0C89:  key_just_pressed {Z}0x5A
                            THEN 0C8F: samp process_chat_input "/klyap"
                            END
                        END
                    END
                END
            END
        END
    END
END
 

VJVL

Новичок
Автор темы
26
0
CLEO:
{$CLEO}
0000:

REPEAT
0001: WAIT 0 MS
UNTIL 0AFA:

WHILE TRUE
0001: WAIT 0 MS
    IF 0C89:  key_just_pressed {E}0x45
    THEN 0C8F: samp process_chat_input "/knockout"
    ELSE
        IF 0C89:  key_just_pressed {Q}0x51
        THEN 0C8F: samp process_chat_input "/cuff"
        ELSE
            IF 0C89:  key_just_pressed {R}0x52
            THEN 0C8F: samp process_chat_input "/uncuff"
            ELSE
                IF 0C89:  key_just_pressed {1}0x31
                THEN 0C8F: samp process_chat_input "/take weapons"
                ELSE
                    IF 0C89:  key_just_pressed {2}0x32
                    THEN 0C8F: samp process_chat_input "/take drugs"
                    ELSE
                        IF 0C89:  key_just_pressed {3}0x33
                        THEN 0C8F: samp process_chat_input "/take otmichka"
                        ELSE
                            IF 0C89:  key_just_pressed {Z}0x5A
                            THEN 0C8F: samp process_chat_input "/klyap"
                            END
                        END
                    END
                END
            END
        END
    END
END
Вводит просто команду, но не вписывает id. Надо что-бы вписывал id когда навожу на игрока и ПКМ
7AEVFHO24gA.jpg


CLEO:
{$CLEO}
0000:

REPEAT
0001: WAIT 0 MS
UNTIL 0AFA:

WHILE TRUE
0001: WAIT 0 MS
    IF 0C89:  key_just_pressed {E}0x45
    THEN 0C8F: samp process_chat_input "/knockout"
    ELSE
        IF 0C89:  key_just_pressed {Q}0x51
        THEN 0C8F: samp process_chat_input "/cuff"
        ELSE
            IF 0C89:  key_just_pressed {R}0x52
            THEN 0C8F: samp process_chat_input "/uncuff"
            ELSE
                IF 0C89:  key_just_pressed {1}0x31
                THEN 0C8F: samp process_chat_input "/take weapons"
                ELSE
                    IF 0C89:  key_just_pressed {2}0x32
                    THEN 0C8F: samp process_chat_input "/take drugs"
                    ELSE
                        IF 0C89:  key_just_pressed {3}0x33
                        THEN 0C8F: samp process_chat_input "/take otmichka"
                        ELSE
                            IF 0C89:  key_just_pressed {Z}0x5A
                            THEN 0C8F: samp process_chat_input "/klyap"
                            END
                        END
                    END
                END
            END
        END
    END
END
Сделай пожалуйста, буду благодарен очень :)
 
Последнее редактирование модератором:

DarkP1xel

Сила воли наше всё.
BH Team
3,635
4,983
CLEO:
{$CLEO}
0AC6: 0@ = label @Buff0 offset

REPEAT
0001: WAIT 0 MS
UNTIL 0AFA:

WHILE TRUE
0001: WAIT 0 MS
    IF 0AD2: 1@ = player $PLAYER_CHAR targeted_actor
    THEN
        IF 0B2B: samp 1@ = get_player_id_by_actor_handle 1@
        THEN
            IF 0C89:  key_just_pressed {E}0x45
            THEN
            0AD3: 0@ = FORMAT "/knockout %d" {ID}1@
            0C8F: samp process_chat_input 0@
            ELSE
                IF 0C89:  key_just_pressed {Q}0x51
                THEN
                0AD3: 0@ = FORMAT "/cuff %d" {ID}1@
                0C8F: samp process_chat_input 0@
                ELSE
                    IF 0C89:  key_just_pressed {R}0x52
                    THEN
                    0AD3: 0@ = FORMAT "/uncuff %d" {ID}1@
                    0C8F: samp process_chat_input 0@
                    ELSE
                        IF 0C89:  key_just_pressed {1}0x31
                        THEN
                        0AD3: 0@ = FORMAT "/take weapons %d" {ID}1@
                        0C8F: samp process_chat_input 0@
                        ELSE
                            IF 0C89:  key_just_pressed {2}0x32
                            THEN
                            0AD3: 0@ = FORMAT "/take drugs %d" {ID}1@
                            0C8F: samp process_chat_input 0@
                            ELSE
                                IF 0C89:  key_just_pressed {3}0x33
                                THEN
                                0AD3: 0@ = FORMAT "/take otmichka %d" {ID}1@
                                0C8F: samp process_chat_input 0@
                                ELSE
                                    IF 0C89:  key_just_pressed {Z}0x5A
                                    THEN
                                    0AD3: 0@ = FORMAT "/klyap %d" {ID}1@
                                    0C8F: samp process_chat_input 0@
                                    END
                                END
                            END
                        END
                    END
                END
            END
        END
    END
END

:Buff0 // 64 + 1
HEX
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0
END
 

VJVL

Новичок
Автор темы
26
0
CLEO:
{$CLEO}
0AC6: 0@ = label @Buff0 offset

REPEAT
0001: WAIT 0 MS
UNTIL 0AFA:

WHILE TRUE
0001: WAIT 0 MS
    IF 0AD2: 1@ = player $PLAYER_CHAR targeted_actor
    THEN
        IF 0B2B: samp 1@ = get_player_id_by_actor_handle 1@
        THEN
            IF 0C89:  key_just_pressed {E}0x45
            THEN
            0AD3: 0@ = FORMAT "/knockout %d" {ID}1@
            0C8F: samp process_chat_input 0@
            ELSE
                IF 0C89:  key_just_pressed {Q}0x51
                THEN
                0AD3: 0@ = FORMAT "/cuff %d" {ID}1@
                0C8F: samp process_chat_input 0@
                ELSE
                    IF 0C89:  key_just_pressed {R}0x52
                    THEN
                    0AD3: 0@ = FORMAT "/uncuff %d" {ID}1@
                    0C8F: samp process_chat_input 0@
                    ELSE
                        IF 0C89:  key_just_pressed {1}0x31
                        THEN
                        0AD3: 0@ = FORMAT "/take weapons %d" {ID}1@
                        0C8F: samp process_chat_input 0@
                        ELSE
                            IF 0C89:  key_just_pressed {2}0x32
                            THEN
                            0AD3: 0@ = FORMAT "/take drugs %d" {ID}1@
                            0C8F: samp process_chat_input 0@
                            ELSE
                                IF 0C89:  key_just_pressed {3}0x33
                                THEN
                                0AD3: 0@ = FORMAT "/take otmichka %d" {ID}1@
                                0C8F: samp process_chat_input 0@
                                ELSE
                                    IF 0C89:  key_just_pressed {Z}0x5A
                                    THEN
                                    0AD3: 0@ = FORMAT "/klyap %d" {ID}1@
                                    0C8F: samp process_chat_input 0@
                                    END
                                END
                            END
                        END
                    END
                END
            END
        END
    END
END

:Buff0 // 64 + 1
HEX
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0
END
Вписывает вместо id вот так : /KNOCKOUT D
 
Статус
В этой теме нельзя размещать новые ответы.