ping при прицеливании

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

Danil_Foster

Новичок
Автор темы
8
0
полгода назад находил тут на версию 0.3.7, его суть: когда прицеливаешься на противника его пинг где-нибудь в уголке показывается
 

DarkP1xel

Сила воли наше всё.
BH Team
3,635
4,987
CLEO:
{$CLEO}
0AC6: 0@ = label @Buffer offset
0B6D: render 1@ = create_font "Arial" height 15 flags 13

WHILE TRUE
    0001: 0
    IF 0256:   player $PLAYER_CHAR defined
    THEN
        IF 0AD2: 2@ = player $PLAYER_CHAR targeted_actor
        THEN 0B2B: samp 3@ = get_player_id_by_actor_handle 2@
            IF 0B23:  samp is_player_connected 3@
            THEN 0B2A: samp 4@ = get_player_ping 3@
                IF 0029:   4@ >= 0
                THEN
               
                    IF 8019:   NOT 4@ > 50
                    THEN 0AD3: 0@ = format "P:{%X} %d" | {cL1 | Green}0x33FF33 {Ping}4@ |
                    ELSE
                        IF 8019:   NOT 4@ > 100
                        THEN 0AD3: 0@ = format "P:{%X} %d" | {cL1 | Yellow}0xFFFF33 {Ping}4@ |
                        ELSE 0AD3: 0@ = format "P:{%X} %d" | {cL1 | Red}0xFF3333 {Ping}4@ |
                        END
                    END
               
                    03F0: enable_text_draw TRUE
                    0B6F: render font 1@ draw_text 0@ pos 50 500 color 0xFFFFFFFF
                    03F0: enable_text_draw FALSE
               
                END           
            END
        END
    END
END

:Buffer // 32 + 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 00
END

// By DarkP1xel
 
  • Нравится
Реакции: sаnеk

SR_team

like pancake
BH Team
4,809
6,488
CLEO:
{$CLEO}
0AC6: 0@ = label @Buffer offset
0B6D: render 1@ = create_font "Arial" height 15 flags 13

WHILE TRUE
    0001: 0
    IF 0256:   player $PLAYER_CHAR defined
    THEN
        IF 0AD2: 2@ = player $PLAYER_CHAR targeted_actor
        THEN 0B2B: samp 3@ = get_player_id_by_actor_handle 2@
            IF 0B23:  samp is_player_connected 3@
            THEN 0B2A: samp 4@ = get_player_ping 3@
                IF 0029:   4@ >= 0
                THEN
              
                    IF 8019:   NOT 4@ > 50
                    THEN 0AD3: 0@ = format "P:{%X} %d" | {cL1 | Green}0x33FF33 {Ping}4@ |
                    ELSE
                        IF 8019:   NOT 4@ > 100
                        THEN 0AD3: 0@ = format "P:{%X} %d" | {cL1 | Yellow}0xFFFF33 {Ping}4@ |
                        ELSE 0AD3: 0@ = format "P:{%X} %d" | {cL1 | Red}0xFF3333 {Ping}4@ |
                        END
                    END
              
                    03F0: enable_text_draw TRUE
                    0B6F: render font 1@ draw_text 0@ pos 50 500 color 0xFFFFFFFF
                    03F0: enable_text_draw FALSE
              
                END          
            END
        END
    END
END

:Buffer // 32 + 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 00
END

// By DarkP1xel
иди учи lua
 
  • Нравится
Реакции: ishi
Статус
В этой теме нельзя размещать новые ответы.