How can i add vehicles to VirtualWorld - 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: How can i add vehicles to VirtualWorld (
/showthread.php?tid=305425)
How can i add vehicles to VirtualWorld -
lamarr007 - 22.12.2011
Hi, how can I add this vehicles in VirtualWorld 1 ? :
Код:
AddStaticVehicle(468,2517.0923,-1665.5867,13.9631,280.3533,86,86);
AddStaticVehicle(468,2517.0923,-1665.5867,13.9631,280.3533,86,86);
Re: How can i add vehicles to VirtualWorld -
Voldemort - 22.12.2011
pawn Код:
new Car1 = AddStaticVehicle(468,2517.0923,-1665.5867,13.9631,280.3533,86,86);
new Car2 = AddStaticVehicle(468,2517.0923,-1665.5867,13.9631,280.3533,86,86);
SetVehicleVirtualWorld(Car1,vw);
SetVehicleVirtualWorld(Car2,vw);
LinkVehicleToInterior(Car1,int);
LinkVehicleToInterior(Car2,int);
Re: How can i add vehicles to VirtualWorld -
park4bmx - 22.12.2011
pawn Код:
new Veh1 = AddStaticVehicle(468,2517.0923,-1665.5867,13.9631,280.3533,86,86);
new Veh2 = AddStaticVehicle(468,2517.0923,-1665.5867,13.9631,280.3533,86,86);
SetVehicleVirtualWorld(Veh2, GetPlayerVirtualWorld(playerid));
SetVehicleVirtualWorld(Veh1, GetPlayerVirtualWorld(playerid));
format SetVehicleVirtualWorld(vehicleid,worldid)
Re: How can i add vehicles to VirtualWorld -
Tee - 22.12.2011
pawn Код:
new worldvehicles[2];
worldvehicles[0] = AddStaticVehicle(468,2517.0923,-1665.5867,13.9631,280.3533,86,86);
worldvehicles[1] AddStaticVehicle(468,2517.0923,-1665.5867,13.9631,280.3533,86,86);
pawn Код:
SetVehicleVirtualWorld(worldvehicles[0],1);
SetVehicleVirtualWorld(worldvehicles[1],1);
If you have more than 2 vehicles, I can show you how to set the virtual worlds for all of them without doing it individually.
Re: How can i add vehicles to VirtualWorld -
lamarr007 - 22.12.2011
Thx to you