CLEO Help NITRO.cs - make it toggleable?

CLEO related

TyroneMaddog

Active member
Joined
Apr 2, 2013
Messages
52
Reaction score
1
Hi. I was wondering if it's possible to make this CLEO toggleable. F3 preferably. Thanks.
 

Attachments

  • NITRO.cs
    17.2 KB · Views: 14

dphome

Well-known member
Joined
Mar 21, 2020
Messages
456
Solutions
9
Reaction score
165
Location
Poland
Possible, will do later
PHP:
{$CLEO .cs}
0000:

WHILE TRUE
WAIT 0

IF 0AB0:   key_pressed 114 // F3
THEN
    IF 0256:   player $PLAYER_CHAR defined
    THEN
        IF 00DF:   actor $PLAYER_ACTOR driving
        THEN 
            03C0: 1@ = actor $PLAYER_ACTOR car            
            09E9: car 1@ set_single_nitro
            0AD1: show_formatted_text_highpriority "~g~NITRO!" time 1337
        END
    END
    WAIT 1337
END

END
0A93: terminate_this_custom_script
 

Attachments

  • Script.cs
    17.7 KB · Views: 6

TyroneMaddog

Active member
Joined
Apr 2, 2013
Messages
52
Reaction score
1
PHP:
{$CLEO .cs}
0000:

WHILE TRUE
WAIT 0

IF 0AB0:   key_pressed 114 // F3
THEN
    IF 0256:   player $PLAYER_CHAR defined
    THEN
        IF 00DF:   actor $PLAYER_ACTOR driving
        THEN
            03C0: 1@ = actor $PLAYER_ACTOR car           
            09E9: car 1@ set_single_nitro
            0AD1: show_formatted_text_highpriority "~g~NITRO!" time 1337
        END
    END
    WAIT 1337
END

END
0A93: terminate_this_custom_script
I wanted something else, but this works even better. Thanks!
 

TyroneMaddog

Active member
Joined
Apr 2, 2013
Messages
52
Reaction score
1
Possible, will do later
PHP:
{$CLEO .cs}
0000:

WHILE TRUE
WAIT 0

IF 0AB0:   key_pressed 114 // F3
THEN
    IF 0256:   player $PLAYER_CHAR defined
    THEN
        IF 00DF:   actor $PLAYER_ACTOR driving
        THEN
            03C0: 1@ = actor $PLAYER_ACTOR car           
            09E9: car 1@ set_single_nitro
            0AD1: show_formatted_text_highpriority "~g~NITRO!" time 1337
        END
    END
    WAIT 1337
END

END
0A93: terminate_this_custom_script
What I originally wanted is to make this togglable, for example: You log into a server and it's off by default, no matter how many times u press control it won't give u NOS, as it's disabled. And make it like F3 it's on and off-key. Is it possible to make?
 

dphome

Well-known member
Joined
Mar 21, 2020
Messages
456
Solutions
9
Reaction score
165
Location
Poland
What I originally wanted is to make this togglable, for example: You log into a server and it's off by default, no matter how many times u press control it won't give u NOS, as it's disabled. And make it like F3 it's on and off-key. Is it possible to make?
Check this >>>
PHP:
{$CLEO .cs}
{$USE bitwise}
0000:

WHILE TRUE
WAIT 0

IF 0AB0:   key_pressed 114 // F3
THEN
    IF 0256:   player $PLAYER_CHAR defined
    THEN
        IF 00DF:   actor $PLAYER_ACTOR driving
        THEN 
            03C0: 1@ = actor $PLAYER_ACTOR car            
            0B12: 30@ = 30@ XOR 1        
            IF 0039:   30@ == 1
            THEN
                09E9: car 1@ set_single_nitro 
                0AD1: show_formatted_text_highpriority "~g~NITRO!" time 300
            ELSE
                06E8: car 1@ destroy_component 1008 
                0AD1: show_formatted_text_highpriority "~R~NITRO!" time 300
            END            
        END
    END
    WAIT 300
END

END
0A93: terminate_this_custom_script
 

Attachments

  • Script.cs
    18 KB · Views: 9

TyroneMaddog

Active member
Joined
Apr 2, 2013
Messages
52
Reaction score
1
Check this >>>
PHP:
{$CLEO .cs}
{$USE bitwise}
0000:

WHILE TRUE
WAIT 0

IF 0AB0:   key_pressed 114 // F3
THEN
    IF 0256:   player $PLAYER_CHAR defined
    THEN
        IF 00DF:   actor $PLAYER_ACTOR driving
        THEN
            03C0: 1@ = actor $PLAYER_ACTOR car           
            0B12: 30@ = 30@ XOR 1       
            IF 0039:   30@ == 1
            THEN
                09E9: car 1@ set_single_nitro
                0AD1: show_formatted_text_highpriority "~g~NITRO!" time 300
            ELSE
                06E8: car 1@ destroy_component 1008
                0AD1: show_formatted_text_highpriority "~R~NITRO!" time 300
            END           
        END
    END
    WAIT 300
END

END
0A93: terminate_this_custom_script
Yes, this one's good. But in the original, I could press CTRL again when the NOS finished and it would spawn another. In this one, you need to press F3 to on/off in order to spawn another one. Can you fix it, please? Thanks.
 
Top