Spawn Problem/Virtual World Problem - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Spawn Problem/Virtual World Problem (
/showthread.php?tid=106702)
Spawn Problem/Virtual World Problem -
Globe2009 - 05.11.2009
hello everyone i have a small problem with houses for sale
the only problem is when you buy a house and log out
the next day you login again you dont always spawn in the house you sometimes spawn at the float icon that is the door/entrance and the virtual world is wrong so no cars are visable
i dont mind spawning outside sometimes i just dont like not being able to see cars
Re: Spawn Problem/Virtual World Problem -
Devine - 05.11.2009
SetPlayerInterior(playerid, 0);
Place that in the script. (Where you think it's not in the right interior, IE: OnPlayerConnect)
Re: Spawn Problem/Virtual World Problem -
Peter_Corneile - 05.11.2009
SetPlayerVirtualWorld(playerid,0);
Re: Spawn Problem/Virtual World Problem -
Devine - 05.11.2009
Quote:
Originally Posted by ►Peter Corneile◄ [ideal-host.co.uk
]
SetVirtualWorld(playerid,0);
|
Or that.
Re: Spawn Problem/Virtual World Problem -
Globe2009 - 05.11.2009
Code:
if(house !=999)
{
if(SpawnChange[playerid]) //If 1, then you get to your house, else spawn somewhere else
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,HouseInfo[house][hInt]);
SetPlayerVirtualWorld(playerid,HouseInfo[house][hWorld]);
SetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]); // Warp the player
PlayerInfo[playerid][pLocal] = house;
HouseEntered[playerid] = house;
PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
return 1;
}
}
is this code the problem?
they are all set at 0
its just as soon as you connect to the server you spawn outside with vw of 1
Re: Spawn Problem/Virtual World Problem -
Peter_Corneile - 05.11.2009
try changing
to