CLEO Help Nitro Help

CLEO related
Status
Not open for further replies.

proaleksandar

Member
Joined
Sep 29, 2017
Messages
15
Reaction score
0
Hello,

I have problem!
Script working very good.
But i have problem with infinite nitro!
When button (-) not pressed script adding nitro non stop!
I imagined it until I pressed button (-) script normally works!
But when nitro is switched on, He goes out! (Create new nitro then need click left mouse click agin agin agin)
How to set when one nitro switches on,to work until I squeeze button (-) = key_down 109


Code:
:AddNitro
wait 0
    if
            not Actor.Driving($PLAYER_ACTOR)
    then
            wait 0
            0af8: chat "{a4c639}|| AddNitro ||{f2f3f4} You have to be in the {e03c31}vehcile{f2f3f4}!" 0xa4c639
            //0AC9: free_allocated_memory 0@
            jump @Finish
    end
    if and
          Actor.Driving($PLAYER_ACTOR)
          not key_down 109
    then
          0@ = Actor.CurrentCar($PLAYER_ACTOR)
          09E9: car 0@ set_single_nitro
          wait 3000
          jump @AddNitro
    end
    if 
          key_down 109
    then
          wait 0
          0af8: chat "{a4c639}|| AddNitro ||{f2f3f4} Infinite nitro now {e03c31}OFF{f2f3f4}!" 0xa4c639
          0AC9: free_allocated_memory 0@
          jump @Finish              
  end
end
else_jump @AddNitro
 

shanker

Well-known member
Joined
Sep 18, 2016
Messages
291
Reaction score
17
Location
Romania
[shcode=cpp]
while true
    wait 0
    if key_down SELECT_KEY
    then
        if 80DF:   actor $PLAYER_ACTOR driving
        then
            chatmsg "eat beans if u need n20 onfoot" -1
            wait 500 // anti spam
        else
            0@ = Actor.CurrentCar($PLAYER_ACTOR)
            09E9: car 0@ set_single_nitro
            chatmsg "1x nitro added" -1
            wait 500 // anti spam
        end
    end
end
[/shcode]
 

proaleksandar

Member
Joined
Sep 29, 2017
Messages
15
Reaction score
0
shanker said:
[shcode=cpp]
while true
    wait 0
    if key_down SELECT_KEY
    then
        if 80DF:   actor $PLAYER_ACTOR driving
        then
            chatmsg "eat beans if u need n20 onfoot" -1
            wait 500 // anti spam
        else
            0@ = Actor.CurrentCar($PLAYER_ACTOR)
            09E9: car 0@ set_single_nitro
            chatmsg "1x nitro added" -1
            wait 500 // anti spam
        end
    end
end
[/shcode]

[font=arial, sans-serif][font=arial, sans-serif]Thanks for your reply![/font]
[/font]
 
Status
Not open for further replies.
Top