Teleport Vehicle.
#1

I want to create vehicle from LS. When I enter it. It will teleport me to some interior and teleport me to LV in the next time.


Can you help me?


Thank you, regard.


Tho!
Reply
#2

under your defines do
new lsveh
underongamemodeinit
lsveh = AddStaticVehicle(...)
and onplayerentervehicle ifisplayerinvehicle lsveh setvehiclepos... dont coy paste that im not in my comp to check the callbacks n stuff. but its somethin like that
Reply
#3

Well, i think i can make that. But tomorrow, cause im off now.

To get sure:

1st.) Car in LS
2nd.) Entering it
3rd.) Teleport to LV (with car??)
4th.) Car will respawn.
5th.) same as 1st.


Like this?


-Jeffry
Reply
#4

1st.) Car in LS
2nd.) Entering it
3rd.)Teleport to any interior(example House)
4rd.) Teleport from house to LV (not with car)
5th.) same as 1st.

Reply
#5

At the top
Код:
new Vehicle[1];
OnGameModeInit
Код:
Vehicle[0] = AddStaticVehicle(..);
OnPlayerEnterVehicle
Код:
if(vehicleid == Vehicle[0]) SetPlayerPos(x,y,z);
Reply
#6

Quote:
Originally Posted by » RэРиR «
At the top
Код:
new Vehicle[1];
OnGameModeInit
Код:
Vehicle[0] = AddStaticVehicle(..);
OnPlayerEnterVehicle
Код:
if(vehicleid == Vehicle[0]) SetPlayerPos(x,y,z);
Thats what i wanted to do but im not on a comp with PAWNO"!!
Good job ryder
Reply
#7

So i dont need to make the script?

Well, if so, nice that you found a solution.
Reply
#8

Quote:
Originally Posted by » RэРиR «
At the top
Код:
new Vehicle[1];
OnGameModeInit
Код:
Vehicle[0] = AddStaticVehicle(..);
OnPlayerEnterVehicle
Код:
if(vehicleid == Vehicle[0]) SetPlayerPos(x,y,z);
No offense, but that's a kinda bad idea. Use just "new intname;" not new "intname[1];".
Reply
#9

Quote:
Originally Posted by Calon
Quote:
Originally Posted by » RэРиR «
At the top
Код:
new Vehicle[1];
OnGameModeInit
Код:
Vehicle[0] = AddStaticVehicle(..);
OnPlayerEnterVehicle
Код:
if(vehicleid == Vehicle[0]) SetPlayerPos(x,y,z);
No offense, but that's a kinda bad idea. Use just "new intname;" not new "intname[1];".
Depends if he wants to add more vehicles later, then an array variable is pretty useful.
Reply
#10

Quote:
Originally Posted by lrZ^ aka LarzI
Quote:
Originally Posted by Calon
Quote:
Originally Posted by » RэРиR «
At the top
Код:
new Vehicle[1];
OnGameModeInit
Код:
Vehicle[0] = AddStaticVehicle(..);
OnPlayerEnterVehicle
Код:
if(vehicleid == Vehicle[0]) SetPlayerPos(x,y,z);
No offense, but that's a kinda bad idea. Use just "new intname;" not new "intname[1];".
Depends if he wants to add more vehicles later, then an array variable is pretty useful.
True, but he just wants one.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)