CARCONTROL
0.3z
0.3z
Enter vehicle as a passenger and control it as your own while being a passenger! Unlike many this one is activated by a command and can be deactivated easily.
Activation: Chat command /ControlCar to enable or disable.
Function: Controls a car as a passenger.
Note: Try not to exit vehicles without disabling the script first.
Requirements: CLEO 4.1, SAMP Functions 3.2.
Requirements: CLEO 4.1, SAMP Functions 3.2.
Made by Mr.Ze.
Updated 19.7.2014 - v1.1
- Fixed major 'freeze' bug.
Updated 16.8.2014 - v1.2
- Added patches to the script.
Source code
Updated 19.7.2014 - v1.1
- Fixed major 'freeze' bug.
Updated 16.8.2014 - v1.2
- Added patches to the script.
Download: Here
Source code
- {$CLEO .cs}
- 0B34: samp register_client_command "ControlCar" to_label @Control
- WHILE TRUE
- wait 0
- if 0@ == 1
- then
- 0000: NOP
- end
- END
- :Control
- wait 0
- 03C0: $car = actor $PLAYER_ACTOR car
- 0B12: 0@ = 0@ XOR 1
- if and
- Player.Defined($PLAYER_ACTOR)
- 00DB: actor $PLAYER_ACTOR in_car $car
- then
- if
- 0@ == 1
- then
- 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
- 036A: put_actor $PLAYER_ACTOR in_car $car
- 0AF8: samp add_message_to_chat "{8650AC}[CarControl]: {00CD00}You are in control now!" color 0xFFFFFF
- else
- 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
- 072B: put_actor $PLAYER_ACTOR into_car $car passengerseat -1 //Doesn't work for some reason?
- 0430: put_actor $PLAYER_ACTOR into_car $car passenger_seat -1 //Works
- 0AF8: samp add_message_to_chat "{8650AC}[CarControl]: {FF0000}You are no longer in control!" color 0xFFFFFF
- end
- else 0AF8: samp add_message_to_chat "You must be in a car!!" color 0x9000
- end
- SAMP.CmdRet
CARCONTROL 0.3.7 please
ReplyDeleteCARCONTROL 0.3.7 please
ReplyDelete