Is this Vitrual World bug? - 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: Is this Vitrual World bug? (
/showthread.php?tid=308352)
Is this Vitrual World bug? -
Gooday - 03.01.2012
pawn Код:
else if(pickupid == bcsd)
{
SetPlayerPos(playerid, 246.783996,63.900199,1003.640625);
SetPlayerVirtualWorld(playerid, -1);
SetPlayerInterior(playerid, 6);
SendClientMessage(playerid, COLOR_GOLD,"[INFO]You entered the BCSD Office.");
}
else if(pickupid == bcsdex)
{
SetPlayerPos(playerid, -217.0885,979.6011,19.5008);
SetPlayerVirtualWorld(playerid, -1);
SetPlayerInterior(playerid, 0);
SendClientMessage(playerid, COLOR_GOLD,"[INFO]You exited the BCSD Office.");
}
When i exit i see the map but i dont see any vehicle

+REP!
Re: Is this Vitrual World bug? -
Norck - 03.01.2012
Yes, you should change a virtual world to 0 when you are exiting building, so it will looks like:
pawn Код:
else if(pickupid == bcsd)
{
SetPlayerPos(playerid, 246.783996,63.900199,1003.640625);
SetPlayerVirtualWorld(playerid, -1);
SetPlayerInterior(playerid, 6);
SendClientMessage(playerid, COLOR_GOLD,"[INFO]You entered the BCSD Office.");
}
else if(pickupid == bcsdex)
{
SetPlayerPos(playerid, -217.0885,979.6011,19.5008);
SetPlayerVirtualWorld(playerid, 0); // not -1
SetPlayerInterior(playerid, 0);
SendClientMessage(playerid, COLOR_GOLD,"[INFO]You exited the BCSD Office.");
}