[CLEO] Easy Drive - DRIVE USING MOUSE CAMERA

_=Gigant=_

Well-known member
Joined
Mar 21, 2017
Messages
353
Reaction score
16
Hello, this mod allows you to drive any vehicle with your mouse, vehicle will turn into your current looking direction and allow you to control it with mouse, of course use W to drive forward, S to reduce speed and SPACE break :3 :v

to activate and deactivate this mod type /.dcm

enjoy ;)
[attachment=5342]

This mod is tested on SAMP 0.3.7 R1 with sampfuncs 5.3.3 and CLEO 4.3 it also works on UIF server R2

code

Code:
{$CLEO}
0000:

wait 2500
0B34: ".dcm" @DCAM

while true // get in the loop
wait 0
if 5@ == TRUE // command is typed
then
if 00DF: actor $PLAYER_ACTOR driving
then
0@ = Actor.CurrentCar($PLAYER_ACTOR)
046C: 2@ = car 0@ driver
if 003A: $PLAYER_ACTOR == 2@
then
03AB: 0@ 1
0A30: 0@
01EC: 0@ 1
02AC: 0@ 1 1 1 1 1
07DA: 0@ 0.0 0.0 0.0
07DB: 0@ 0.0 0.0 0.0
call @Camera 0 to 1@
Car.Angle(0@) = 1@
end
end
end
end

:Camera
068D: 0@ 1@ 2@
068E: 2@ 3@ 4@
0063: 2@ -= 0@
0063: 3@ -= 1@
0604: 2@ 3@ to 0@
ret 1 0@

:DCAM
0B12: 5@ = 5@ XOR TRUE
if
5@ == TRUE // COMMAND IS TYPED
then
printf "~Y~ DCAM IS ~G~ON" 1500
else
printf "~Y~ DCAM IS ~R~OFF" 1500
end
cmdret
 

Attachments

  • DriveByCamera.cs
    18.2 KB · Views: 16
Top