Resource icon

CLEO Release carControl.cs (modified for remote control)

CLEO related
Status
Not open for further replies.

monday

Expert
Joined
Jun 23, 2014
Messages
1,127
Solutions
1
Reaction score
158
https://www.youtube.com/watch?v=zfwUso0HOZA

Original mod was made by Mr.Ze, this is a modified version of it. It looks like he's not here to attach it to his release and I think it's worth to share it separately as it gives some more possibilities.

Command:
/co <driverID> - while driving vehicle

Tested with:
-Cleo 4.1
-Samp Functions 5.0
-MG Functions impossible 4.3
-SA-MP 0.3z R1 (no sync using 0.3.7 version)

Source:
Code:
{$CLEO .cs}

0B34: samp register_client_command "co" to_label @activation
0000: NOP
0@ = 0

:Control
wait 0
if 0@ == 1
then 
036A: put_actor $PLAYER_ACTOR in_car 5@
0@ = 2
else
    if 0@ == 3
    then
    036A: put_actor $PLAYER_ACTOR in_car 4@
    0@ = 0 
    end
end
jump @Control

:activation
wait 0
if 0@ == 2
then
0B2D: write samp_memory 0x12D60 value 1@ size 2
0B2D: write samp_memory 0x13FA0 value 2@ size 2
0B2D: write samp_memory 0x78560 value 3@ size 2 
0@ = 3
0159: camera_on_ped $PLAYER_ACTOR mode 4 switchstyle 2
015A: restore_camera
02EB: restore_camera_with_jumpcut
0373: set_camera_directly_behind_player
0AF8: samp add_message_to_chat "{8650AC}[CarControl]: {FF0000}You are no longer in control!" color 0xFFFFFF 
SAMP.CmdRet
end

if and
Player.Defined($PLAYER_ACTOR)
0449:   actor $PLAYER_ACTOR in_a_car
then
    0B35: samp 25@ = get_last_command_params
    if
    0AD4: 26@ = scan_string 25@ format "%d" 24@ //IF and SET
    then
        if
        0B23:  samp is_player_connected 24@
        then
            if
            0B20: samp 27@ = actor_handle_by_samp_player_id 24@
            then
                if
                0449:   actor 27@ in_a_car
                then
                5@ = Actor.CurrentCar(27@)             
                0B2E: 1@ = read_samp_memory 0x12D60 size 2
                0B2D: write samp_memory 0x12D60 value 0xC390 size 2
                0B2E: 2@ = read_samp_memory 0x13FA0 size 2
                0B2D: write samp_memory 0x13FA0 value 0xC390 size 2
                0B2E: 3@ = read_samp_memory 0x78560 size 2
                0B2D: write samp_memory 0x78560 value 0xC20400 size 2 
                4@ = Actor.CurrentCar($PLAYER_ACTOR)
                0@ = 1
                0158: camera_on_car 5@ mode 18 switchstyle 2
                0AF8: samp add_message_to_chat "{8650AC}[CarControl]: {00CD00}You are in control now!" color 0xFFFFFF
                else 0AF8: samp add_message_to_chat "Specified player must be driving" color 0x9000   
                end
            else 0AF8: samp add_message_to_chat "Specified player is not streamed in" color 0x9000 
            end      
        else 0AF8: samp add_message_to_chat "Specified player is offline" color 0x9000  
        end  
    else 0AF8: samp add_message_to_chat "Wrong format" color 0x9000     
    end     
else
0AF8: samp add_message_to_chat "You must be in a car" color 0x9000     
end                     
SAMP.CmdRet

Original version by Mr.Ze:
http://ugbase.eu/releases-6/carcontrol-by-mr-ze-source
 

Attachments

  • carControl.cs
    20.4 KB · Views: 1,920

Min

Well-known member
Joined
Jun 13, 2014
Messages
220
Reaction score
1
Another car control  :me_gusta:

It's time to troll more player  :trollface:
 

prlanbrate

Active member
Joined
Dec 30, 2013
Messages
104
Reaction score
0
haha, great i was laughing during the video  :eek:h_stop_it_u:
 

WaTTi

Well-known member
Joined
Jan 4, 2015
Messages
260
Reaction score
8
Its increible  :somuchwin: this in a rp server... or carsumo  :motherofgod_ PD: ¿how you see all id in the area?
 

Rough

Active member
Joined
Mar 7, 2015
Messages
42
Reaction score
4
I love you mate! <3

:somuchwin: :somuchwin: :somuchwin:
 

Innocent

Member
Joined
Feb 16, 2014
Messages
22
Reaction score
0
Question. Is there anyway that the victim will know that it was I who's using his car? I doubt because I can see in the minimap at the bottom left corner of the screen that I get teleported exactly to the victim's car, does he also see that???(non-rp server)
 

0x32789

Expert
Joined
May 26, 2014
Messages
849
Reaction score
52
Location
LongForgotten <-> 0x32789
:angry:
idk
i think he wont because the hax is su fast than lads
e.e
I use it often on 'DERBY' only
Why?:
I control them and fall them down the platform while I am hiding
 

Innocent

Member
Joined
Feb 16, 2014
Messages
22
Reaction score
0
Kevin_Hendrews link said:
:angry:
idk
i think he wont because the hax is su fast than lads
e.e
I use it often on 'DERBY' only
Why?:
I control them and fall them down the platform while I am hiding

Hmm fair enough.  :urtheman:
 

qewqeeq22

New member
Joined
Apr 25, 2015
Messages
1
Reaction score
0
Guys why does my camera keeps focusing on the controlled car even when i finished?
 

Stefan

Member
Joined
May 14, 2014
Messages
16
Reaction score
0
-Cleo 4.1
-Samp Functions 5.0
-MG Functions impossible 4.3
Can you find/upload this files? I'm on mobile and it's hard :/
 

Amstrong404

Active member
Joined
Feb 19, 2014
Messages
49
Reaction score
0
Stefan link said:
-Cleo 4.1
-Samp Functions 5.0
-MG Functions impossible 4.3
Can you find/upload this files? I'm on mobile and it's hard :/
you must play samp in pc :eek:h_stop_it_u: :iknowwhatyoudid: :fuck_you:
 
Status
Not open for further replies.
Top