[CLEO]Autoscroll for all weapons[Samp Version: Any(maybe)]

Kross

Active member
Joined
Dec 15, 2021
Messages
149
Reaction score
42
Hello everyone from the ugbase forum,cleo made by the user RnS DriftDog(made available in 2017 and probably can be deleted the server when downloading it),so I decided to make it available to anyone who wants.Regardless of the bullets you are going to shoot,it will always do autoscroll(regardless of the weapon too),important script for those who like to play sawnoff.

Cleo: open source,no encryption,always accepting improvements to the script.
Activation: RMB(the moment you release the RMB, it autoscrolls.)
 

Attachments

  • autoscroll.cs
    18.7 KB · Views: 95

dphome

Well-known member
Joined
Mar 21, 2020
Messages
475
Solutions
9
Reaction score
168
Location
Poland
Script is better optimized.
PHP:
{$CLEO .cs}
0000:

WHILE TRUE
WAIT 0

IF 0AB0:   is_key_pressed 2 // Right Mouse Button
THEN           
    WHILE 0AB0:   is_key_pressed 2 // Right Mouse Button
        WAIT 0
    END    
    IF 0256:   player $PLAYER_CHAR defined
    THEN    
        IF AND
        80DF:   actor $PLAYER_ACTOR NO-driving
        8818:  actor $PLAYER_ACTOR NO-in_air
        THEN             
            1@ = 0
            IF 1@ <> -1
            THEN
                0470: 0@ = actor $PLAYER_ACTOR current_weapon
                WHILE TRUE
                    WAIT 0
                    01B9: set_actor $PLAYER_ACTOR armed_weapon_to 0
                    0470: 1@ = actor $PLAYER_ACTOR current_weapon
                    IF OR
                        1@ == 0
                        1@ == 1
                    THEN BREAK
                    END 
                END             
                01B9: set_actor $PLAYER_ACTOR armed_weapon_to 0@
            END                                
        END
    END
END
    
    
END
0A93: terminate_this_custom_script
 

Attachments

  • AutoScroll.cs
    18.4 KB · Views: 64

epickox

New member
Joined
Dec 8, 2023
Messages
1
Reaction score
0
Script is better optimized.
PHP:
{$CLEO .cs}
0000:

WHILE TRUE
WAIT 0

IF 0AB0:   is_key_pressed 2 // Right Mouse Button
THEN          
    WHILE 0AB0:   is_key_pressed 2 // Right Mouse Button
        WAIT 0
    END   
    IF 0256:   player $PLAYER_CHAR defined
    THEN   
        IF AND
        80DF:   actor $PLAYER_ACTOR NO-driving
        8818:  actor $PLAYER_ACTOR NO-in_air
        THEN            
            1@ = 0
            IF 1@ <> -1
            THEN
                0470: 0@ = actor $PLAYER_ACTOR current_weapon
                WHILE TRUE
                    WAIT 0
                    01B9: set_actor $PLAYER_ACTOR armed_weapon_to 0
                    0470: 1@ = actor $PLAYER_ACTOR current_weapon
                    IF OR
                        1@ == 0
                        1@ == 1
                    THEN BREAK
                    END
                END            
                01B9: set_actor $PLAYER_ACTOR armed_weapon_to 0@
            END                               
        END
    END
END
   
   
END
0A93: terminate_this_custom_script
can you please add function so you can turn it on and off by some key?
 
Top