Resource icon

Untagged Release Bike / Motorcycle speed up

Status
Not open for further replies.

dphome

Well-known member
Joined
Mar 21, 2020
Messages
475
Solutions
9
Reaction score
168
Location
Poland
Press W+Z for all motors, thank you Parazitas.
Code:
      {$CLEO .cs}

0000: NOP

wait 10000

while true
wait 0

if or
00DD:   actor $PLAYER_ACTOR driving_car_with_model 581 // BF-400
00DD:   actor $PLAYER_ACTOR driving_car_with_model 462 // Faggio
00DD:   actor $PLAYER_ACTOR driving_car_with_model 521 // FCR-900
00DD:   actor $PLAYER_ACTOR driving_car_with_model 522 // NRG-500
00DD:   actor $PLAYER_ACTOR driving_car_with_model 461 // PCJ-600
00DD:   actor $PLAYER_ACTOR driving_car_with_model 448 // Pizza Boy
00DD:   actor $PLAYER_ACTOR driving_car_with_model 468 // Sanchez
00DD:   actor $PLAYER_ACTOR driving_car_with_model 586 // Wayfarer
then
    if
    0AB0: 90 // Z
    then
        if
        00DF:   actor $PLAYER_ACTOR driving
        then
            03C0: 1@ = $PLAYER_ACTOR car
            if and
            00DF:   actor $PLAYER_ACTOR driving
            81F3:   car 1@ not_in_air
            THEN
                0AB1: @Set_Virtual_Key 2 KeyOffSet 0x107 state 255
                wait 30
                0AB1: @Set_Virtual_Key 2 KeyOffSet 0x107 state 0
                wait 30
            end
        end
    end
end

if or 
00DD:   actor $PLAYER_ACTOR driving_car_with_model 463 // Freeway
00DD:   actor $PLAYER_ACTOR driving_car_with_model 523 // HPV1000
then
    if
    0AB0: 90 // Z
    then
        if
        00DF:   actor $PLAYER_ACTOR driving
        then
            03C0: 1@ = $PLAYER_ACTOR car
            if and
            00DF:   actor $PLAYER_ACTOR driving
            81F3:   car 1@ not_in_air
            THEN
                0AB1: @Set_Virtual_Key 2 KeyOffSet 0x107 state 255
                wait 30
                0AB1: @Set_Virtual_Key 2 KeyOffSet 0x107 state 0
                wait 30
            end
        end
    end
end

if or 
00DD:   actor $PLAYER_ACTOR driving_car_with_model 509 // Bike
00DD:   actor $PLAYER_ACTOR driving_car_with_model 481 // BMX
00DD:   actor $PLAYER_ACTOR driving_car_with_model 510 // Mountain Bike
then
    if
    0AB0: 90 // Z
    then
        if
        00DF:   actor $PLAYER_ACTOR driving
        then
            03C0: 1@ = $PLAYER_ACTOR car
            if and
            00DF:   actor $PLAYER_ACTOR driving
            81F3:   car 1@ not_in_air
            THEN
                0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 255
                wait 30
                0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 0
                wait 30
            end
        end
    end
end

end

:Set_Virtual_Key
{
    255 = true
    0 = false
    0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 255
}
2@ = 0xB72CC8
0@ *= 2
005A: 2@ += 0@  // (int)
0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0
0AB2: ret 0
 

Attachments

  • MotorAndBikeSpeedUp.cs
    20.3 KB · Views: 56

Kelly_Trang

Active member
Joined
Jun 22, 2021
Messages
30
Reaction score
1
Location
Vietnam
Can you add HPV1000 to MotorcycleSpeedUP V2? I only need the Motorcycle version, the Bike version I don't need (actually I just found a bike speed up that only activates when pressing the Shift key - easier to control the bike)
 

Happy_999

Member
Joined
Nov 13, 2021
Messages
13
Reaction score
0
Location
United Arab Emirates
can someone add activation key to this mod only
key: "page up"

BikeSpeedUP - Press continuously W KEY when you start drive Bike.
 

Attachments

  • BikeSpeedUP.cs
    18.1 KB · Views: 9

dphome

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

WHILE TRUE
WAIT 0

IF 0AB0:   key_pressed 90 // Z
THEN
    IF 0256:   player $PLAYER_CHAR defined
    THEN
        IF 0AB1: @IsActorInDriverSeat 0
        THEN
            IF OR
            00DD:   actor $PLAYER_ACTOR driving_car_with_model 581 {BF-400}
            00DD:   actor $PLAYER_ACTOR driving_car_with_model 462 {Faggio}
            00DD:   actor $PLAYER_ACTOR driving_car_with_model 521 {FCR-900}
            00DD:   actor $PLAYER_ACTOR driving_car_with_model 522 {NRG-500}
            00DD:   actor $PLAYER_ACTOR driving_car_with_model 461 {PCJ-600}
            00DD:   actor $PLAYER_ACTOR driving_car_with_model 448 {Pizza Boy}
            00DD:   actor $PLAYER_ACTOR driving_car_with_model 468 {Sanchez}
            00DD:   actor $PLAYER_ACTOR driving_car_with_model 586 {Wayfarer}
            THEN 0AB1: @ForcePressGameKeyOffset 1 _KeyOffset 3
            ELSE        
                IF OR
                00DD:   actor $PLAYER_ACTOR driving_car_with_model 463 {Freeway}
                00DD:   actor $PLAYER_ACTOR driving_car_with_model 523 {HPV1000}
                THEN 0AB1: @ForcePressGameKeyOffset 1 _KeyOffset 3
                ELSE        
                    IF OR
                    00DD:   actor $PLAYER_ACTOR driving_car_with_model 509 {Bike}
                    00DD:   actor $PLAYER_ACTOR driving_car_with_model 481 {BMX}
                    00DD:   actor $PLAYER_ACTOR driving_car_with_model 510 {Mountain Bike}
                    THEN 0AB1: @ForcePressGameKeyOffset 1 _KeyOffset 32           
                    END
                END
            END
        END
    END
    WAIT 30
END

END
0A93: terminate_this_custom_script
 

Attachments

  • MotorAndBikeSpeedUp.cs
    19.7 KB · Views: 55

Kelly_Trang

Active member
Joined
Jun 22, 2021
Messages
30
Reaction score
1
Location
Vietnam
Can anyone add a toggle button to cleo. Like: Press the on button, cleo will work as usual, press it again, cleo will turn off (as if it has not been installed). Exactly like that, we don't really like the version of holding down the button to activate the cleo.
 

kenpeo

Active member
Joined
May 10, 2014
Messages
28
Reaction score
3
Can anyone add a toggle button to cleo. Like: Press the on button, cleo will work as usual, press it again, cleo will turn off (as if it has not been installed). Exactly like that, we don't really like the version of holding down the button to activate the cleo.

PHP:
{$CLEO .cs}

0000: NOP

wait 8500

30@ = false

while true
wait 0

if and //Xóa "AND" di
0AB0: 189 // Dấu - bên bàn phím chữ
8B21: not samp is_chat_opened //Xoa dong nay di neu ko co SAMPFUNCS
Actor.Driving($PLAYER_ACTOR)

then
    if
    30@ == false
    then
        30@ = true       
        0AD1: "~Y~on" 1337
        wait 500
    else
        30@ = false
        0AD1: "~B~off" 1337
        wait 500
            
    end
end




if or

00DD:   actor $PLAYER_ACTOR driving_car_with_model 581 // BF-400
00DD:   actor $PLAYER_ACTOR driving_car_with_model 462 // Faggio
00DD:   actor $PLAYER_ACTOR driving_car_with_model 521 // FCR-900
00DD:   actor $PLAYER_ACTOR driving_car_with_model 522 // NRG-500
00DD:   actor $PLAYER_ACTOR driving_car_with_model 461 // PCJ-600
00DD:   actor $PLAYER_ACTOR driving_car_with_model 468 // Sanchez
00DD:   actor $PLAYER_ACTOR driving_car_with_model 586 // Wayfarer
then
    if
    0AB0: 87 // W
    then
        if and
        30@ == true
        00DF:   actor $PLAYER_ACTOR driving
        then
            03C0: 1@ = $PLAYER_ACTOR car
            if and
            00DF:   actor $PLAYER_ACTOR driving
            81F3:   car 1@ not_in_air
            THEN
                0A8C: write_memory 0xB72ED6 size 1 value 255 virtual_protect 0
                wait 10
                0A8C: write_memory 0xB72ED6 size 1 value 0 virtual_protect 0
                wait 10
                0A8C: write_memory 0xB72ED6 size 1 value 255 virtual_protect 0
                wait 10
                0A8C: write_memory 0xB72ED6 size 1 value 0 virtual_protect 0
            end
        end
    end
end

// 00DD:   actor $PLAYER_ACTOR driving_car_with_model 448 // Pizza Boy
if 
00DD:   actor $PLAYER_ACTOR driving_car_with_model 448 // Pizza Boy
then
    if
    0AB0: 87 // W
    then
        if and
        30@ == true
        00DF:   actor $PLAYER_ACTOR driving
        then
            03C0: 1@ = $PLAYER_ACTOR car
            if and
            00DF:   actor $PLAYER_ACTOR driving
            81F3:   car 1@ not_in_air
            THEN
                    0A8C: write_memory 0xB72ED6 size 1 value 255 virtual_protect 0
                    wait 10
                    0A8C: write_memory 0xB72ED6 size 1 value 0 virtual_protect 0
                    wait 10
                    0A8C: write_memory 0xB72ED6 size 1 value 255 virtual_protect 0
                    wait 10
                    0A8C: write_memory 0xB72ED6 size 1 value 0 virtual_protect 0
                    //wait 10
                    //0A8C: write_memory 0xB72ED6 size 1 value 255 virtual_protect 0
                   // wait 10
                    //0A8C: write_memory 0xB72ED6 size 1 value 0 virtual_protect
            
            end
        end
    end
end


if or
00DD:   actor $PLAYER_ACTOR driving_car_with_model 463 // Freeway
00DD:   actor $PLAYER_ACTOR driving_car_with_model 523 // HPV1000
then
    if
    0AB0: 87 // W
    then
        if and
        30@ == true
        00DF:   actor $PLAYER_ACTOR driving
        then
            03C0: 1@ = $PLAYER_ACTOR car
            if and
            00DF:   actor $PLAYER_ACTOR driving
            81F3:   car 1@ not_in_air
            THEN
                    0A8C: write_memory 0xB72ED6 size 1 value 255 virtual_protect 0
                    wait 10
                    0A8C: write_memory 0xB72ED6 size 1 value 0 virtual_protect 0
                    wait 10
                    0A8C: write_memory 0xB72ED6 size 1 value 255 virtual_protect 0
                    wait 10
                    0A8C: write_memory 0xB72ED6 size 1 value 0 virtual_protect 0
            end
        end
    end
end

if or
00DD:   actor $PLAYER_ACTOR driving_car_with_model 509 // Bike
00DD:   actor $PLAYER_ACTOR driving_car_with_model 481 // BMX
00DD:   actor $PLAYER_ACTOR driving_car_with_model 510 // Mountain Bike
then
    if
    0AB0: 87 // W
    then
        if and
        30@ == true
        00DF:   actor $PLAYER_ACTOR driving
        then
            03C0: 1@ = $PLAYER_ACTOR car
            if and
            00DF:   actor $PLAYER_ACTOR driving
            81F3:   car 1@ not_in_air
            THEN
                0A8C: write_memory 0xB72D76 size 1 value 255 virtual_protect 0
                wait 10
                0A8C: write_memory 0xB72D76 size 1 value 0 virtual_protect 0
                wait 10
                0A8C: write_memory 0xB72D76 size 1 value 255 virtual_protect 0
                wait 10
                0A8C: write_memory 0xB72D76 size 1 value 0 virtual_protect 0
            end
        end
    end
end

end


:Set_Virtual_Key
{
    255 = true
    0 = false
    0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 255
}
2@ = 0xB72CC8
0@ *= 2
005A: 2@ += 0@  // (int)
0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0
0AB2: ret 0

Nếu ko có SAMPFUNCS.asi
làm theo như bên dưới

if and //Xóa "AND" di
0AB0: 189 // Dấu - bên bàn phím chữ
8B21: not samp is_chat_opened //Xoa dong nay di neu ko co SAMPFUNCS
Actor.Driving($PLAYER_ACTOR)
 
Status
Not open for further replies.
Top