CLEO Help cleo problem

CLEO related
Status
Not open for further replies.

samphacks

Active member
Joined
Dec 18, 2016
Messages
40
Reaction score
2
I finished my hack, but it doesn't work as it should.
Code:
0000: NOP
thread "CAR SHOOTER"
REPEAT
WAIT 0
until SAMP.Available()

0B34: samp register_client_command "cshoot" to_label @CMDS
//-------------------------------------
0@ = 0
//-------------------------------------



:C_SHOOT
wait 0
if
    0@ == 1
else_jump @C_SHOOT
wait 1
Actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
036A: put_actor $PLAYER_ACTOR in_car 6@
wait 10
alloc 3@ 18
0C0D: struct 3@ offset 0 size 2 = 0 
0C0D: struct 3@ offset 2 size 2 = 0 
0C0D: struct 3@ offset 4 size 2 = 0
0C0D: struct 3@ offset 6 size 4 = 0@ 
0C0D: struct 3@ offset 10 size 4 = 1@ 
0C0D: struct 3@ offset 14 size 4 = 2@ 
0B3D: raknet 4@ = new_bit_stream 
0B40: raknet bit_stream 4@ write 212 type 0 size 1
0B40: raknet bit_stream 4@ write 3@ type 5 size 18 
0B8B: raknet send bit_stream 4@                 
0B3E: raknet delete_bit_stream 4@
free 3@
ret 0
jump @C_SHOOT

:CMDS
wait 0 
  SAMP.IsCommandTyped(1@)
if 
0AD4: 2@ = scan_string 1@ format "%d" 3@  
else_jump @err_1
if 
  Actor.Driving($PLAYER_ACTOR)
else_jump @err_2
if 
  SAMP.IsPlayerConnected(3@)
else_jump @err_3 
4@ = SAMP.GetActorHandleByPlayerID(3@)
if 
056D:   actor 4@ defined 
else_jump @err_4 
if 
  Actor.Driving(4@)
else_jump @err_5 
5@ = Actor.CurrentCar($PLAYER_ACTOR)
6@ = Actor.CurrentCar(4@)
if and
056E:   car 5@ defined 
056E:   car 6@ defined 
else_jump @err_6 
if and
  not Actor.InCar($PLAYER_ACTOR, 6@)
  not Actor.InCar(4@, 5@)
else_jump @err_7 
0@ = 1 
SAMP.CmdRet


:err_1

wait 0 
0AF8: samp add_message_to_chat "USAGE: /cshoot <ID>" color 12566463  
SAMP.CmdRet
goto @C_SHOOT

:err_2

wait 0 
0AF8: samp add_message_to_chat "You must be in vehicle!" color 12517890  
SAMP.CmdRet
goto @C_SHOOT

:err_3

wait 0 
0AF8: samp add_message_to_chat "Invalid ID" color 12517890  
SAMP.CmdRet
goto @C_SHOOT


:err_4

wait 0 
0AF8: samp add_message_to_chat "Player is too far" color 12517890  
SAMP.CmdRet
goto @C_SHOOT
 

:err_5

wait 0 
0AF8: samp add_message_to_chat "Player is not in vehicle!" color 12517890  
SAMP.CmdRet
goto @C_SHOOT


:err_6

wait 0 
0AF8: samp add_message_to_chat "You are in the same vehicle as the player!" color 12517890  
SAMP.CmdRet
goto @C_SHOOT



:err_7
 
wait 0 
0AF8: samp add_message_to_chat "Couldn't define the vehicles" color 12517890  
SAMP.CmdRet
goto @C_SHOOT

What I want to do that when you type /cshoot you will teleport to another player's car, it will spoof his car speed. How can I make that I go to passenger seat, not the driver seat? And also how to go back to my previous car? And the car speed spoof doesnt work well.
im new to cleo
 
Status
Not open for further replies.
Top