SA-MP Forums Archive
Spawning Vehicle in Virtual World's - 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: Spawning Vehicle in Virtual World's (/showthread.php?tid=432775)



Spawning Vehicle in Virtual World's - Avi Raj - 24.04.2013

Hello,

I Have this script :-
pawn Код:
SetPlayerVirtualWorld(playerid, 0);
new rand = random(sizeof(Rustlerspawns));
new veh = CreateVehicle(476,Rustlerspawns[rand][0],Rustlerspawns[rand][1],Rustlerspawns[rand][2],Rustlerspawns[rand][3],-1,-1,-1);
PutPlayerInVehicle(playerid,veh,0);
InRustler[playerid] = 1;
Its Virtual World, It works fine.
But when i do it virtual world 1, it dont.
Please Anyone Help?


AW: Spawning Vehicle in Virtual World's - HurtLocker - 24.04.2013

https://sampwiki.blast.hk/wiki/SetVehicleVirtualWorld


Re: Spawning Vehicle in Virtual World's - DobbysGamertag - 24.04.2013

pawn Код:
SetPlayerVirtualWorld(playerid, 0);
new rand = random(sizeof(Rustlerspawns));
new veh = CreateVehicle(476,Rustlerspawns[rand][0],Rustlerspawns[rand][1],Rustlerspawns[rand]
SetVehicleVirtualWorld(GetPlayerVehicleID(playerid),GetPlayerVirtualWorld(playerid));
[2],Rustlerspawns[rand][3],-1,-1,-1);
PutPlayerInVehicle(playerid,veh,0);
InRustler[playerid] = 1;
Try that?