SA-MP Forums Archive
The problem with "virtual 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: The problem with "virtual worlds". (/showthread.php?tid=437768)



The problem with "virtual worlds". - Vlad_Dredd - 17.05.2013

Hello everyone! I had such a problem.For example, I parked the car in the garage (with the virtual world), I want to make re-spawn vehicles. Well, when I do re-spawn car, the car in the garage is lost (it is not visible, but on the server as if there is one). How to fix this problem so that the car could be seen in the virtual world after re-spawn all the cars?
In advance, thank you!
___________
Sorry for the bad English


Re: The problem with "virtual worlds". - RajatPawar - 17.05.2013

Just spawn it in the player's world..?
pawn Код:
new car = CreateVehicle(....);
SetVehicleVirtualWorld(car, GetPlayerVirtualWorld(playerid));