CLEO Help [Help] Warp on nearest driver vehicle (Opcodes?)

CLEO related
Status
Not open for further replies.

FraizeR007

Active member
Joined
Aug 12, 2014
Messages
58
Reaction score
0
Anyone got the opcode of warp on nearest driver vehicle ? :D im planning to make my FIRST CLEO :)
 

DzkAy

Well-known member
Joined
Feb 20, 2014
Messages
472
Reaction score
1
:WARP
wait 0
if
// your own conditions like 0AB0 , 0ADC, bla bla...
then
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@
if
056D:  actor 1@ defined
then
if
00DF:  actor 1@ driving
then
00A0: store_actor 1@ position_to 2@ 3@ 4@
wait 50
00A1: put_actor $PLAYER_ACTOR at 2@ 3@ 4@
else
print "CAR IS EMPTY" 1500
end
else
end
else
END
 

FraizeR007

Active member
Joined
Aug 12, 2014
Messages
58
Reaction score
0
D.Kay link said:
:WARP
wait 0
if
// your own conditions like 0AB0 , 0ADC, bla bla...
then
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@
if
056D:  actor 1@ defined
then
if
00DF:  actor 1@ driving
then
00A0: store_actor 1@ position_to 2@ 3@ 4@
wait 50
00A1: put_actor $PLAYER_ACTOR at 2@ 3@ 4@
else
print "CAR IS EMPTY" 1500
end
else
end
else
END


how about "detecting if the actor is inside the passenger seat or else it will send samp message "You must be in passenger seat!"
 

DzkAy

Well-known member
Joined
Feb 20, 2014
Messages
472
Reaction score
1
T3K link said:
You're not making your own cleo... you're making someone else make it for you -.-'
T3K is GODLIKE .  :celeral_spitting:

for it u need to define the closest car to:
from the script above closest_car = 0@ so do it like this conditions:
Code:
if
0431:   car 0@ passenger_seat_free 0 // check if passenger seat is free or not , 1 = free , 0 = not free.
then
print "You're in passenger seat now" 2000
else
print "PLZ BE IN PASSENGER SEAT NOBZ" 2000
end
 

FraizeR007

Active member
Joined
Aug 12, 2014
Messages
58
Reaction score
0
D.Kay link said:
T3K is GODLIKE .  :celeral_spitting:

for it u need to define the closest car to:
from the script above closest_car = 0@ so do it like this conditions:
Code:
if
0431:   car 0@ passenger_seat_free 0 // check if passenger seat is free or not , 1 = free , 0 = not free.
then
print "You're in passenger seat now" 2000
else
print "PLZ BE IN PASSENGER SEAT NOBZ" 2000
end


[member=5679]T3K[/member] sorry this is my first time to create my mods. im begginner and needing your help.

i mean what if "if there is a NO driver in car while you're inside the passenger seat, it will jump go back" how?
 

DzkAy

Well-known member
Joined
Feb 20, 2014
Messages
472
Reaction score
1
FraizeR007 link said:
[member=5679]T3K[/member] sorry this is my first time to create my mods. im begginner and needing your help.

i mean what if "if there is a NO driver in car while you're inside the passenger seat, it will jump go back" how?
well from the above-bove script , closest ped (actor) = 1@
so you can simply add a little condition for it to check that is
if
Actor.Driving(1@) // check if driving car
then
print "There's someone drives in-car" 2000
else // if not
print "There's NO-ONE drives in-car" 200
end
 

FraizeR007

Active member
Joined
Aug 12, 2014
Messages
58
Reaction score
0
D.Kay link said:
well from the above-bove script , closest ped (actor) = 1@
so you can simply add a little condition for it to check that is

Well thanks again. How about checking if there's near VEHIClE from the actor or else it will jump out? checking near vehicle
 

DzkAy

Well-known member
Joined
Feb 20, 2014
Messages
472
Reaction score
1
FraizeR007 link said:
Well thanks again. How about checking if there's near VEHIClE from the actor or else it will jump out? checking near vehicle
Im on phone now, so logically ull do something like this to check
If
Car 0@ defined // 0@ is the closest vehicle from the above scirpt, do ctrl + alt  + 2 to look for this opcode defined car.
Then
Print
Else
Print
End
 

FraizeR007

Active member
Joined
Aug 12, 2014
Messages
58
Reaction score
0
Guys, Codes aren't working properly  :surprised:

I need the exact code that "Scan nearest vehicle in player surrounding if nothing found it will print a message"

how?

thanks in advance
 

DzkAy

Well-known member
Joined
Feb 20, 2014
Messages
472
Reaction score
1
FraizeR007 link said:
Guys, Codes aren't working properly  :surprised:

I need the exact code that "Scan nearest vehicle in player surrounding if nothing found it will print a message"

how?

thanks in advance
juz read all of the scripts again , again and again , u'll see.
 

FraizeR007

Active member
Joined
Aug 12, 2014
Messages
58
Reaction score
0
D.Kay link said:
juz read all of the scripts again , again and again , u'll see.

Thanks for the advice

but whats the code on "when you are in passenger seat then scan if there is a driver" ?
 
Status
Not open for further replies.
Top