CLEO Help Samp fpslimit for swimming

CLEO related

BOT

Member
Joined
Jul 6, 2021
Messages
10
Reaction score
0
Hello everyone, I'm looking for a cleo script, more as a keybinding. I tried searching here and on Blast Web but, couldn't find what I am looking for, that's why I'm here.
I usually do races ( swimming ) to earn money in-game. As you know the /fpslimit 20 bug makes your player swim faster but, it's annoying to keep writing /fpslimit 20 and then again back to /fpslimit 60



--- Main --

If someone can help me and provide a cleo script that can change the fps to 20 and then back to 60 with the same activate key (vertical key: 106) and if possible with a text indicating it changed to 20 fps or 60 fps and if also possible this only works when my frame limiter is ON in settings.

Note: ( I keep my frame limiter ON mostly in settings and sometimes OFF for 90 fps, I hope that doesn't crash the game )


Thank you, ( and sorry for the broken eng )
 

BOT

Member
Joined
Jul 6, 2021
Messages
10
Reaction score
0
Hello everyone, I'm looking for a cleo script, more as a keybinding. I tried searching here and on Blast Web but, couldn't find what I am looking for, that's why I'm here.
I usually do races ( swimming ) to earn money in-game. As you know the /fpslimit 20 bug makes your player swim faster but, it's annoying to keep writing /fpslimit 20 and then again back to /fpslimit 60



--- Main --

If someone can help me and provide a cleo script that can change the fps to 20 and then back to 60 with the same activate key (vertical key: 106) and if possible with a text indicating it changed to 20 fps or 60 fps and if also possible this only works when my frame limiter is ON in settings.

Note: ( I keep my frame limiter ON mostly in settings and sometimes OFF for 90 fps, I hope that doesn't crash the game )


Thank you, ( and sorry for the broken eng )
I forgot to mention, I don't use sampfuncs or any other stuff, just the clean game with the Cleo folder, and idk which version my game is I downloaded it from Oceanofgames If anyone knows which version it is, Let me know ty
 

dphome

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

WHILE TRUE
WAIT 0

IF AND
0AB0:   key_pressed 1 // Left mouse button
0AB0:   key_pressed 32 // Spacebar
THEN                        
    IF 0256:   player $PLAYER_CHAR defined
    THEN
        0AB1: @get_samp_version_id 0 _returned: ID 0@        
        0B12: 30@ = 30@ XOR 1        
        IF 0039:   30@ == 1
        THEN         
            0AC8: 1@ = allocate_memory_size 1024
            0AD3: 1@ = format "/fpslimit 20"
            0AB1: @process_chat_input 2 SampVersionID 0@ InputText 1@    
        ELSE 
            0AC8: 2@ = allocate_memory_size 1024
            0AD3: 2@ = format "/fpslimit 60"
            0AB1: @process_chat_input 2 SampVersionID 0@ InputText 2@    
        END
    END
    WAIT 250
END
 
END
0A93: terminate_this_custom_script
 

Attachments

  • Script2.cs
    23.7 KB · Views: 15

BOT

Member
Joined
Jul 6, 2021
Messages
10
Reaction score
0
PHP:
{$CLEO .cs}
{$USE bitwise}
0000:

WHILE TRUE
WAIT 0

IF AND
0AB0:   key_pressed 1 // Left mouse button
0AB0:   key_pressed 32 // Spacebar
THEN                       
    IF 0256:   player $PLAYER_CHAR defined
    THEN
        0AB1: @get_samp_version_id 0 _returned: ID 0@       
        0B12: 30@ = 30@ XOR 1       
        IF 0039:   30@ == 1
        THEN        
            0AC8: 1@ = allocate_memory_size 1024
            0AD3: 1@ = format "/fpslimit 20"
            0AB1: @process_chat_input 2 SampVersionID 0@ InputText 1@   
        ELSE
            0AC8: 2@ = allocate_memory_size 1024
            0AD3: 2@ = format "/fpslimit 60"
            0AB1: @process_chat_input 2 SampVersionID 0@ InputText 2@   
        END
    END
    WAIT 250
END
 
END
0A93: terminate_this_custom_script
Hey bro, can't this be on same key
 

dphome

Well-known member
Joined
Mar 21, 2020
Messages
475
Solutions
9
Reaction score
168
Location
Poland
Done - look at code. ))
PHP:
{$CLEO .cs}
{$USE bitwise}
0000:

WHILE TRUE
WAIT 0

IF 0AB0:   key_pressed 106 // * (numpad)
THEN                        
    IF 0256:   player $PLAYER_CHAR defined
    THEN
        0AB1: @get_samp_version_id 0 _returned: ID 0@        
        0B12: 30@ = 30@ XOR 1        
        IF 0039:   30@ == 1
        THEN         
            0AC8: 1@ = allocate_memory_size 1024
            0AD3: 1@ = format "/fpslimit 20"
            0AB1: @process_chat_input 2 SampVersionID 0@ InputText 1@    
        ELSE 
            0AC8: 2@ = allocate_memory_size 1024
            0AD3: 2@ = format "/fpslimit 60"
            0AB1: @process_chat_input 2 SampVersionID 0@ InputText 2@    
        END
    END
    WAIT 250
END
 
END
0A93: terminate_this_custom_script
 

Attachments

  • Script.cs
    23.7 KB · Views: 12
Top