CLEO Help Auto turn off engine, accept repair/refill and turn it back.

CLEO related
Status
Not open for further replies.

Costin.

Member
Joined
Jul 7, 2021
Messages
9
Reaction score
3
Location
Romania
Hello, I'm having trouble with this thing, my code stops the engine, accepts the repair and the refill but doesn't turn the engine back.
Code:
:cmd_arr
SAMP.IsCommandTyped(20@)
if
0AD4: 20@ = scan_string 20@ format "%d" 21@
then
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "/engine"
    0AF9: samp say_msg "/accept repair %s" 1@
    0AF9: samp say_msg "/accept refill %s" 1@
    0AF9: samp say_msg "/engine"
else
    chatmsg "{ffff00}Taxi CMD: /arr ID"
end
SAMP.CmdRet()
 

Jumy

Member
Joined
Feb 28, 2022
Messages
11
Reaction score
1
Location
Romania
Can u put an example?
C#:
while true
wait 0

    
    if 29@ == true
    then
        29@ = false
      say "/n Skin-ul shadow iti ofera 60 la suta job boost, 5 puncte de respect, 50 crow points per payday"
      wait 5000
      say "/n si 1 punct premium la fiecare 24 de payday-uri acumulate."
    end
  end
    
:rubys
29@ = true
SAMP.CmdRet()
 
Status
Not open for further replies.
Top