FraizeR007
Active member
- Joined
- Aug 12, 2014
- Messages
- 58
- Reaction score
- 0
Anyone got the opcode of warp on nearest driver vehicle ? im planning to make my FIRST CLEO
: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
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!"
T3K is GODLIKE . :celeral_spitting:T3K link said:You're not making your own cleo... you're making someone else make it for you -.-'
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
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
well from the above-bove script , closest ped (actor) = 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?
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
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
Im on phone now, so logically ull do something like this to checkFraizeR007 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
juz read all of the scripts again , again and again , u'll see.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
D.Kay link said:juz read all of the scripts again , again and again , u'll see.
046C: 0@ = car 42@ driver
if 0@ <> $player_actor
then CarHasDriver
end