CLEO Help HELP CMD

CLEO related
Status
Not open for further replies.

DjFox

Member
Joined
Mar 29, 2015
Messages
17
Reaction score
1
can any one fix this cleo pls
to flip car with cmd not key
Code:
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP 

0B34: samp register_client_command "flip" to_label @flip

:flip
wait 10 
if 
   Player.Defined($PLAYER_CHAR)
else_jump @flip
if 
   Actor.Driving($PLAYER_ACTOR)
else_jump @flip
if 
key_down 106 
else_jump @flip
0@ = Actor.CurrentCar($PLAYER_ACTOR)
0407: store_coords_to 1@ 2@ 3@ from_car 0@ with_offset 0.0 0.0 0.0 
Car.PutAt(0@, 1@, 2@, 3@)
wait 200 
jump @flip
samp.CmdRet
 

noob213

Active member
Joined
Sep 15, 2017
Messages
88
Reaction score
6
Code:
{$CLEO .cs}
0000: NOP
0B34: samp register_client_command "flip" to_label @flip
0BDE: pause_thread 0 

:flip
00D6: if 
0256:   player $PLAYER_ACTOR defined 
004D: jump_if_false @flip_93 
00D6: if 
00DF:   actor $PLAYER_ACTOR driving 
004D: jump_if_false @flip_93 
0ACD: show_text_highpriority "CAR FLIPPED!" time 2000 
03C0: 0@ = actor $PLAYER_ACTOR car 
0731: set_car 0@ y_angle_to 0 
0B43: samp cmd_ret 

:flip_93
0B43: samp cmd_ret
 

Attachments

  • flip.cs
    17.2 KB · Views: 21

DjFox

Member
Joined
Mar 29, 2015
Messages
17
Reaction score
1
DjFox said:
can any one fix this cleo pls
to flip car with cmd not key
Code:
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP 

0B34: samp register_client_command "flip" to_label @flip

:flip
wait 10 
if 
   Player.Defined($PLAYER_CHAR)
else_jump @flip
if 
   Actor.Driving($PLAYER_ACTOR)
else_jump @flip
if 
key_down 106 
else_jump @flip
0@ = Actor.CurrentCar($PLAYER_ACTOR)
0407: store_coords_to 1@ 2@ 3@ from_car 0@ with_offset 0.0 0.0 0.0 
Car.PutAt(0@, 1@, 2@, 3@)
wait 200 
jump @flip
samp.CmdRet

thanks <3
 
Status
Not open for further replies.
Top