Right... so many CuntControls, I made one that activates with a command and CAN be DEACTIVATED... and I also wanted to add source with it, so here it all is:
[glow=red,2,300]How to use:[/glow]
Go inside any car as a passenger.
Type a a command /ControlCar to activate or deactivate.
Now you control the car as a passenger.
** YOU WILL SEE YOURSELF AS A DRIVER AND OTHER PLAYER OUTSIDE OF THE VEHICLE, BUT THAT IS ONLY ON YOUR SCREEN **
[glow=red,2,300]Enjoy trolling![/glow]
Source to v1.2
[glow=red,2,300]How to use:[/glow]
Go inside any car as a passenger.
Type a a command /ControlCar to activate or deactivate.
Now you control the car as a passenger.
** YOU WILL SEE YOURSELF AS A DRIVER AND OTHER PLAYER OUTSIDE OF THE VEHICLE, BUT THAT IS ONLY ON YOUR SCREEN **
[glow=red,2,300]Enjoy trolling![/glow]
Source to v1.2
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