SA-MP Forums Archive
Vehicle can exists in all worlds? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Vehicle can exists in all worlds? (/showthread.php?tid=421265)



Vehicle can exists in all worlds? - Youice - 08.03.2013

Hello there,

Is it possible to create constant vehicles that can exists in all virtual worlds?

Thanks,


Re: Vehicle can exists in all worlds? - MP2 - 08.03.2013

Not possible.


Re: Vehicle can exists in all worlds? - Youice - 08.03.2013

Okay, you know how or just guessing?.


Re: Vehicle can exists in all worlds? - Youice - 09.03.2013

Quote:
Originally Posted by MP2
Посмотреть сообщение
Not possible.
how then?


Re: Vehicle can exists in all worlds? - DiGiTaL_AnGeL - 09.03.2013

Use a loop:
pawn Код:
for(new vw = 0; i < 2147483647 ; i++)
{
    SetVehicleVirtualWorld(vehicle id, vw);
}



Re: Vehicle can exists in all worlds? - Youice - 09.03.2013

Quote:
Originally Posted by DiGiTaL_AnGeL
Посмотреть сообщение
Use a loop:
pawn Код:
for(new vw = 0; i < 2147483647 ; i++)
{
    SetVehicleVirtualWorld(vehicle id, vw);
}
it may occur a bug? ( as the vehicle will keep appearing - disappearing )?


Re: Vehicle can exists in all worlds? - Stanford - 09.03.2013

It's kinda impossible to do that Youice, and if it's possible it will cause bugs in your server.


Re: Vehicle can exists in all worlds? - AIped - 09.03.2013

lol if player 1 enters the vehicle in virtual world 2
player 2 will enter the vehicle in world 5
players will crash the game cuz eventually its the same vehicle.

Maybe not crash but you be jacked without knowing who did it XD ..buggy for sure! dont do it


Re: Vehicle can exists in all worlds? - JaKe Elite - 09.03.2013

I think AIped got point.
Since it is the same vehicle.

Look at another example.

Player Romel which is me is in virtual world 0. I will enter as Passenger.
Player Jellal is in virtual world 1. He will enter as Driver. Nothing wrongs right? everything is fine.

2 Passenger slot left.

Player Hamachia is in virtual world 2. She will enter as Passenger 2. Still normal.
Player Xenia is in virtual world 3. She will enter as Passenger 3. Full capacity no one can enter in the vehicle anymore.

But this would become buggy in other virtual world. Since other virtual world players cannot see other players from other virtual world. So it will be appear that the car that is full capacity will be empty. When player enter on it. It may cause something like Client bugs or server crashes.

This impossible. It may cause the Client to crashed or Server crashed. Not sure

my answer is. It's dangerous


Re: Vehicle can exists in all worlds? - Youice - 09.03.2013

Quote:
Originally Posted by Romel
Посмотреть сообщение
I think AIped got point.
Since it is the same vehicle.

Look at another example.

Player Romel which is me is in virtual world 0. I will enter as Passenger.
Player Jellal is in virtual world 1. He will enter as Driver. Nothing wrongs right? everything is fine.

2 Passenger slot left.

Player Hamachia is in virtual world 2. She will enter as Passenger 2. Still normal.
Player Xenia is in virtual world 3. She will enter as Passenger 3. Full capacity no one can enter in the vehicle anymore.

But this would become buggy in other virtual world. Since other virtual world players cannot see other players from other virtual world. So it will be appear that the car that is full capacity will be empty. When player enter on it. It may cause something like Client bugs or server crashes.

This impossible. It may cause the Client to crashed or Server crashed. Not sure

my answer is. It's dangerous
Quote:
Originally Posted by Edmund_Kavel
Посмотреть сообщение
It's kinda impossible to do that Youice, and if it's possible it will cause bugs in your server.
Quote:
Originally Posted by AIped
Посмотреть сообщение
lol if player 1 enters the vehicle in virtual world 2
player 2 will enter the vehicle in world 5
players will crash the game cuz eventually its the same vehicle.

Maybe not crash but you be jacked without knowing who did it XD ..buggy for sure! dont do it
yeah I got it, thanks all, (and it would be better if I duplicated the vehicles and made it's constant world, right?)