Add ON/OFF Cleo

TheMarioTR

Новичок
Автор темы
14
0
Add ON/OFF key pressed samp version 0.3dl not sampfuncs
CLEO:
{$CLEO}

thread "PRIVATE PRICEL by LONG"


:pricel_deagle
wait 0
if and
02D8: actor $PLAYER_ACTOR current_weapon 24
Player.Defined($PLAYER_CHAR)
else_jump @pricel_shotgun
0390: load_txd_dictionary "PRICEL"
038F: load_texture "PRICEL" as 102
03F0: enable_text_draw 1
038D: draw_texture 102 position 339.0 179.0 size 120.0 120.0 RGBA 255 255 255 255
jump @pricel_deagle

:pricel_shotgun
wait 0
if and
02D8: actor $PLAYER_ACTOR current_weapon 25
Player.Defined($PLAYER_CHAR)
else_jump @pricel_off
0390: load_txd_dictionary "PRICEL"
038F: load_texture "PRICEL" as 102
03F0: enable_text_draw 1
038D: draw_texture 102 position 339.0 179.0 size 120.0 120.0 RGBA 255 255 255 255
jump @pricel_shotgun

:pricel_off
03F0: enable_text_draw 0
0391: release_textures
jump @pricel_deagle
 

Impossible In Rage

Известный
955
248
Add ON/OFF key pressed samp version 0.3dl not sampfuncs
CLEO:
{$CLEO}

thread "PRIVATE PRICEL by LONG"


:pricel_deagle
wait 0
if and
02D8: actor $PLAYER_ACTOR current_weapon 24
Player.Defined($PLAYER_CHAR)
else_jump @pricel_shotgun
0390: load_txd_dictionary "PRICEL"
038F: load_texture "PRICEL" as 102
03F0: enable_text_draw 1
038D: draw_texture 102 position 339.0 179.0 size 120.0 120.0 RGBA 255 255 255 255
jump @pricel_deagle

:pricel_shotgun
wait 0
if and
02D8: actor $PLAYER_ACTOR current_weapon 25
Player.Defined($PLAYER_CHAR)
else_jump @pricel_off
0390: load_txd_dictionary "PRICEL"
038F: load_texture "PRICEL" as 102
03F0: enable_text_draw 1
038D: draw_texture 102 position 339.0 179.0 size 120.0 120.0 RGBA 255 255 255 255
jump @pricel_shotgun

:pricel_off
03F0: enable_text_draw 0
0391: release_textures
jump @pricel_deagle
Priceloff - OFF script
 

Вложения

  • Pricel.cs
    18.5 KB · Просмотры: 9
  • Ха-ха
Реакции: D3.Pheonix

Motya

Известный
53
52
CLEO:
{$CLEO}
0000:

IF 8AA2: NOT 0@ = load_library "SAMP.DLL"
THEN
    END_THREAD
END

WHILE TRUE
    WAIT 0
    IF 31@ == TRUE
    THEN
        IF OR
            02D8: actor $PLAYER_ACTOR current_weapon 24
            02D8: actor $PLAYER_ACTOR current_weapon 25
        THEN
            IF 056D:   actor $PLAYER_ACTOR defined
            THEN
                0390: load_txd_dictionary "PRICEL"
                038F: load_texture "PRICEL" as 102
                03F0: enable_text_draw 1
                038D: draw_texture 102 position 339.0 179.0 size 120.0 120.0 RGBA 255 255 255 255
            END
        END
    END
   
    IF 0AB0:   key_pressed 49 // 1
    THEN
        REPEAT
            WAIT 0
        UNTIL 8AB0:   key_pressed 49 // 1
        0B12: 31@ = 31@ XOR 1
        IF 31@ == TRUE
        THEN
            PRINTF "GAVNO: ~g~On"  1488
        ELSE
            PRINTF "GAVNO: ~r~Off" 1488
            03F0: enable_text_draw 0
            0391: release_textures
        END
    END
   
END
 

Вложения

  • PRICEL.cs
    18.5 KB · Просмотры: 5
Последнее редактирование:

TheMarioTR

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

IF 8AA2: NOT 0@ = load_library "SAMP.DLL"
THEN
    END_THREAD
END

WHILE TRUE
    WAIT 0
    IF 31@ == TRUE
    THEN
        IF OR
            02D8: actor $PLAYER_ACTOR current_weapon 24
            02D8: actor $PLAYER_ACTOR current_weapon 25
        THEN
            IF 056D:   actor $PLAYER_ACTOR defined
            THEN
                0390: load_txd_dictionary "PRICEL"
                038F: load_texture "PRICEL" as 102
                03F0: enable_text_draw 1
                038D: draw_texture 102 position 339.0 179.0 size 120.0 120.0 RGBA 255 255 255 255
            END
        END
    END
 
    IF 0AB0:   key_pressed 49 // 1
    THEN
        REPEAT
            WAIT 0
        UNTIL 8AB0:   key_pressed 49 // 1
        0B12: 31@ = 31@ XOR 1
        IF 31@ == TRUE
        THEN
            PRINTF "GAVNO: ~g~On"  1488
        ELSE
            PRINTF "GAVNO: ~r~Off" 1488
            03F0: enable_text_draw 0
            0391: release_textures
        END
    END
 
END
"x1.png" Can you do it make this picture?

So a different part of each gun

Sorry my bad english...
 

Вложения

  • x1.png
    x1.png
    12.4 KB · Просмотры: 238
  • x2.png
    x2.png
    6.4 KB · Просмотры: 245

Motya

Известный
53
52
CLEO:
{$CLEO}
0000:

IF 8AA2: NOT 0@ = load_library "SAMP.DLL"
THEN
    END_THREAD
END

                
WHILE TRUE
    WAIT 0
    IF 31@ == TRUE
    THEN
        IF OR
            02D8: actor $PLAYER_ACTOR current_weapon 24
            02D8: actor $PLAYER_ACTOR current_weapon 25
        THEN
            IF 056D:   actor $PLAYER_ACTOR defined
            THEN
                03F0: enable_text_draw TRUE
                038D: draw_texture 1 position 339.0 179.0 size 3.0 3.0 RGBA 255 0 0 255
            END
        END
    END
    
    IF 0AB0:   key_pressed 49 // 1
    THEN
        REPEAT
            WAIT 0
        UNTIL 8AB0:   key_pressed 49 // 1
        0B12: 31@ = 31@ XOR 1
        IF 31@ == TRUE
        THEN
            PRINTF "GAVNO: ~g~On"  1488
        ELSE
            PRINTF "GAVNO: ~r~Off" 1488
            03F0: enable_text_draw FALSE
            0391: release_textures
        END
    END
    
END
 

Вложения

  • PRICEL.cs
    18.3 KB · Просмотры: 3
  • Ха-ха
Реакции: D3.Pheonix