Spawn Problem/Virtual World Problem
#1

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
Reply
#2

SetPlayerInterior(playerid, 0);
Place that in the script. (Where you think it's not in the right interior, IE: OnPlayerConnect)
Reply
#3

SetPlayerVirtualWorld(playerid,0);
Reply
#4

Quote:
Originally Posted by ►Peter Corneile◄ [ideal-host.co.uk
]
SetVirtualWorld(playerid,0);
Or that.
Reply
#5

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
Reply
#6

try changing
pawn Code:
if(house != 999)
to

pawn Code:
if(house == 999)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)